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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x4f0
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], 1
test edi, edi
je 0x41a63e
mov ebx, dword [edi + 0x48]
test ebx, ebx
je 0x41a637
cmp dword [edi + 0x28], 0
je 0x41a637
cmp dword [edi + 0x2c], 0
je 0x41a637
cmp dword [edi + 0x38], 0
je 0x41a637
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x10]
cmp ecx, edx
jae 0x41a648
mov dword [edi + 0x1c], 0x18
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
mov eax, 0
cmp ecx, edx
jbe 0x41a65b
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x10]
add eax, dword [ecx + edx*4]
mov dword [esp + 0x10], ebx
mov ecx, edi
lea ebx, [esp + 0x4c]
push ebx
lea ebx, [esp + 0x94]
push ebx
push eax
call fcn.0041ab1e
add esp, 0xc
test eax, eax
je 0x41a63e
xor ecx, ecx
inc ecx
cmp dword [esp + 0xdc], 0
jne 0x41a6ab
mov eax, dword [esp + 0xc4]
or eax, dword [esp + 0xc0]
je 0x41a6ab
cmp dword [esp + 0xe0], 0
je 0x41a6af
mov dword [edi + 0x1c], 5
jmp 0x41a63e
mov esi, ecx
jmp 0x41a63e
movzx eax, word [esp + 0xa6]
test eax, 0xfff7
je 0x41a6ca
mov dword [edi + 0x1c], 4
jmp 0x41a63e
cmp dword [esp + 0xe4], 0
je 0x41a7bd
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
lea eax, [esp + 0x50]
push 0x1e
push eax
mov dword [esp + 0x10], edx
push edx
mov dword [esp + 0xc], ecx
push ecx
push dword [edi + 0x44]
call dword [edi + 0x38]
add esp, 0x14
cmp eax, 0x1e
jne 0x41a7c9
cmp dword [esp + 0x50], 0x4034b50
jne 0x41a7b1
movzx eax, word [esp + 0x6a]
mov dword [esp + 4], eax
movzx eax, word [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x62]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x66]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5e]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x56]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xe8]
push eax
call fcn.00458b30
mov edx, dword [esp + 8]
add esp, 4
cmp eax, edx
jne 0x41a7b1
mov eax, dword [esp]
add eax, 0x1e
mov ecx, dword [esp + 8]
adc ecx, 0
mov dword [esp], eax
add eax, edx
mov dword [esp + 8], ecx
mov edx, ecx
adc edx, 0
mov dword [esp + 0x3c], eax
mov ecx, eax
add ecx, dword [esp + 0xc]
mov dword [esp + 0x38], edx
adc edx, 0
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x44], ecx
add eax, ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x40], edx
adc ecx, edx
cmp dword [edi], eax
mov eax, dword [edi + 4]
sbb eax, ecx
jae 0x41a7d5
mov dword [edi + 0x1c], 9
jmp 0x41a63e
mov dword [edi + 0x1c], 6
jmp 0x41a63e
mov dword [edi + 0x1c], 0x14
jmp 0x41a63e
mov edx, dword [esp + 4]
mov ecx, edx
mov eax, dword [esp + 0xc]
cmp edx, eax
ja 0x41a7e5
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x41a809
lea edx, [esp + 0x28]
mov ecx, edi
push 0
push dword [esp + 0x18]
call fcn.004269c5
add esp, 8
test eax, eax
je 0x41a96a
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
cmp dword [esp + 4], 0
je 0x41a868
mov eax, dword [esp + 0x28]
push dword [esp + 4]
mov dword [esp + 0x18], eax
push eax
push dword [esp + 0x10]
push dword [esp + 0xc]
push dword [edi + 0x44]
call dword [edi + 0x38]
add esp, 0x14
cmp eax, dword [esp + 4]
jne 0x41aa1e
push dword [esp + 4]
push dword [esp + 0x18]
lea eax, [esp + 0xf0]
push eax
call fcn.004461cd
add esp, 0xc
test eax, eax
je 0x41a868
mov dword [edi + 0x1c], 0x1e
jmp 0x41aaeb
cmp dword [esp + 0xc], 0
je 0x41a885
cmp dword [esp + 0x18], 0xffffffff
je 0x41a9c0
cmp dword [esp + 0x1c], 0xffffffff
je 0x41a9c0
xor eax, eax
xor ecx, ecx
mov dword [esp], 0
test byte [esp + 0x48], 8
je 0x41a976
mov edx, dword [esp + 0x18]
or edx, ecx
jne 0x41a976
cmp dword [esp + 0x20], 0
jne 0x41a976
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x34], 0
setne cl
mov dword [esp + 8], 0x18
cmp byte [esp], 0
jne 0x41a8da
mov al, cl
lea eax, [eax*8 + 0x10]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x44]
add ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x40]
adc edx, dword [esp + 0xbc]
lea eax, [esp + 0x70]
push dword [esp + 8]
push eax
push edx
push ecx
push dword [edi + 0x44]
call dword [edi + 0x38]
add esp, 0x14
mov dword [esp + 4], 0x14
cmp eax, dword [esp + 8]
jne 0x41aacd
xor ecx, ecx
cmp dword [esp + 0x70], 0x8074b50
sete cl
mov eax, dword [esp + ecx*4 + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x34], 0
sete al
mov edx, dword [esp]
not dl
mov ebx, dword [esp + ecx*4 + 0x78]
mov dword [esp + 0x10], ebx
test dl, al
jne 0x41aa2a
lea edx, [ecx*4]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + edx + 0x7c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + edx + 0x80]
jmp 0x41aa2e
mov dword [edi + 0x1c], 0x10
jmp 0x41aaeb
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0xb0]
jne 0x41a85c
mov edx, dword [esp + 0x18]
xor edx, dword [esp + 0xb8]
xor ecx, dword [esp + 0xbc]
or ecx, edx
jne 0x41a85c
mov ecx, dword [esp + 0x1c]
xor ecx, dword [esp + 0xc0]
xor eax, dword [esp + 0xc4]
or eax, ecx
je 0x41aa73
jmp 0x41a85c
mov eax, dword [esp + 0x28]
push dword [esp + 0xc]
mov dword [esp + 4], eax
push eax
push dword [esp + 0x40]
push dword [esp + 0x48]
push dword [edi + 0x44]
call dword [edi + 0x38]
add esp, 0x14
cmp eax, dword [esp + 0xc]
jne 0x41aa1e
cmp dword [esp + 0xc], 3
jbe 0x41aae4
mov eax, dword [esp]
movzx ecx, word [eax + 2]
lea eax, [ecx + 4]
cmp dword [esp + 0xc], eax
jb 0x41aae4
mov edx, dword [esp]
cmp word [edx], 1
je 0x41aade
add dword [esp], eax
sub dword [esp + 0xc], eax
jne 0x41a9e4
jmp 0x41a885
mov dword [edi + 0x1c], 0x14
jmp 0x41aaeb
xor eax, eax
xor ebx, ebx
mov dword [esp + 4], 0x1e
mov edx, dword [esp + 8]
cmp edx, dword [esp + 0xb0]
jne 0x41aacd
mov edx, dword [esp + 0xb8]
xor edx, dword [esp + ecx*4 + 0x74]
xor eax, dword [esp + 0xbc]
or eax, edx
jne 0x41aacd
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0xc0]
xor ebx, dword [esp + 0xc4]
or ebx, eax
jne 0x41aacd
mov esi, dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [edi + 0x34]
call dword [edi + 0x2c]
add esp, 8
bt esi, 0xd
jb 0x41aad6
lea eax, [esp + 0x24]
push 0
push eax
push fcn.0041adb2
push dword [ebp + 0xc]
push edi
call fcn.00419a3c
add esp, 0x14
xor esi, esi
test eax, eax
je 0x41a63e
mov eax, dword [esp + 0x24]
xor esi, esi
inc esi
cmp eax, dword [esp + 0xb0]
je 0x41a63e
mov dword [edi + 0x1c], 0x1e
xor esi, esi
jmp 0x41a63e
mov eax, dword [esp + 4]
mov dword [edi + 0x1c], eax
jmp 0x41aaeb
xor esi, esi
inc esi
jmp 0x41a63e
cmp cx, 0xf
ja 0x41aafd
mov dword [edi + 0x1c], 9
push dword [esp + 0x28]
push dword [edi + 0x34]
call dword [edi + 0x2c]
add esp, 8
jmp 0x41a63e
mov edx, dword [esp]
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x18], edx
mov dl, 1
mov dword [esp], edx
jmp 0x41a890