Function at 0x41a3c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp ebx, 2
jae 0x41a3ed
xor ecx, ecx
jmp 0x41a41d
mov eax, 0xcccccccd
lea esi, [ebx - 2]
mul dword [edi + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x54b1cc]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [edi + 0x20]
dec eax
cmp esi, eax
sete cl
add ecx, 2
add ecx, esi
cmp ecx, ebx
je 0x41a759
mov eax, dword [0x54b1cc]
xor edx, edx
div dword [edi + 0x20]
inc eax
cmp ebx, eax
je 0x41a759
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x24]
bswap eax
test eax, eax
jne 0x41a45e
mov eax, 0x65
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov edx, ebx
push eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.00417490
add esp, 8
test eax, eax
jne 0x41a7ba
mov eax, dword [esp + 0x20]
cmp al, 1
jne 0x41a4b9
push 0x53d0b4
push 0xf747
push 0x53d048
push 0x53d02c
push 0xb
call fcn.00407720
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
cmp al, 2
jne 0x41a54c
cmp dword [ebp + 0xc], 0
jne 0x41a7b8
push 1
lea eax, [esp + 0x28]
mov ecx, edi
push ebx
push eax
lea edx, [esp + 0x20]
call fcn.0041c9e0
add esp, 0xc
test eax, eax
jne 0x41a7ba
mov edx, dword [esp + 0x14]
test edx, edx
je 0x41a75f
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x41a540
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x41a75f
mov ecx, edx
call fcn.0040d5a0
jmp 0x41a75f
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
jne 0x41a7ba
mov ecx, dword [esp + 0x38]
mov esi, dword [ecx + 8]
mov dword [esp + 0x14], esi
cmp ebx, dword [esi + 4]
je 0x41a596
mov eax, dword [ecx + 4]
cmp ebx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], ecx
dec al
mov dword [esi + 0x34], edi
and al, 0x64
mov dword [esi + 4], ebx
mov byte [esi + 9], al
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ecx, dword [esp + 0x1c]
test esi, esi
setne dl
cmovne ecx, eax
dec dl
mov dword [esp + 0x30], ecx
and dl, 2
mov dword [esp + 0x34], edx
push edx
push ecx
lea eax, [esp + 0x34]
mov ecx, edi
push eax
lea edx, [esp + 0x34]
call fcn.0041c9e0
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41a6dc
mov edx, dword [esp + 0x28]
test edx, edx
je 0x41a633
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x41a62c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x20]
add esp, 0x10
mov esi, dword [ebp + 0xc]
jmp 0x41a633
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x2c]
test esi, esi
je 0x41a64d
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp eax, dword [esp + 0x1c]
ja 0x41a5b4
push esi
mov esi, dword [esp + 0x18]
mov ecx, edi
push eax
push dword [esp + 0x20]
mov edx, esi
push dword [esp + 0x2c]
call fcn.0041a160
mov edx, dword [esi + 0x48]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x18], edi
test byte [edx + 0x1c], 0x20
je 0x41a6b9
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x28]
add esp, 0x10
jmp 0x41a6c0
mov ecx, edx
call fcn.0040d5a0
test edi, edi
je 0x41a759
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x41a73c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov eax, dword [esp + 0x34]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
jne 0x41a7b8
mov edi, dword [esp + 0x10]
xor edx, edx
mov eax, dword [0x54b1cc]
div dword [edi + 0x20]
inc eax
mov dword [esp + 0x10], eax
dec ebx
cmp ebx, eax
je 0x41a772
cmp ebx, 2
jae 0x41a780
xor eax, eax
jmp 0x41a7a9
mov eax, 0xcccccccd
lea esi, [ebx - 2]
mul dword [edi + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
sub esi, edx
lea eax, [esi + 2]
sub eax, dword [esp + 0x10]
neg eax
sbb eax, eax
add eax, 3
add eax, esi
cmp eax, ebx
mov eax, dword [esp + 0x10]
je 0x41a772
mov byte [edi + 0x13], 1
mov dword [edi + 0x2c], ebx
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret