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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc0
mov esi, dword [edx + 8]
mov eax, dword [edx]
mov dword [esp + 0x34], ecx
mov dword [esp + 8], edx
test esi, esi
mov dword [esp + 4], eax
mov dword [esp + 0x38], esi
jne 0x41ffbf
mov edx, dword [esp + 4]
lea esi, [esp + 0xa8]
mov ecx, esi
call fcn.004204ec
lea eax, [esp + 0x3c]
mov dword [eax], 4
and dword [eax + 4], 0
and dword [eax + 8], 0
mov edi, dword [esi]
imul eax, dword [esi + 8], 0x14
add eax, edi
mov dword [esp + 0xc], eax
push 4
pop eax
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 0xc]
je 0x420182
push 4
pop esi
mov dword [esp + 0x1c], esi
and dword [esp + 0x20], 0
and dword [esp + 0x24], 0
mov ecx, esi
mov edx, esi
call fcn.004fc1d3
mov dword [eax], edi
mov dword [esp + 0x60], esi
and dword [esp + 0x64], 0
and dword [esp + 0x68], 0
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp], edi
mov dword [esp + 0x14], 1
inc ecx
test ecx, ecx
je 0x420104
lea edi, [ecx - 1]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
mov esi, dword [eax + ecx*4 - 4]
mov ecx, esi
push dword [esp + 0x24]
call fcn.00420635
pop ecx
test al, al
mov ecx, edi
jne 0x42002a
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.0042066f
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x54]
push dword [esi + 4]
push dword [esi]
call fcn.004189ac
pop ecx
pop edx
test eax, eax
mov ecx, edi
je 0x42002a
mov edi, dword [eax + 0x70]
mov ebx, dword [eax + 0x68]
shl edi, 4
test edi, edi
je 0x4200fb
cmp dword [ebx], 0
je 0x4200b5
cmp dword [esp + 0xdc], 0
je 0x4200f3
mov eax, dword [esp]
mov ecx, dword [esp + 0xdc]
mov edx, dword [eax]
push ebx
push dword [eax + 4]
call fcn.004208f6
pop ecx
pop edx
test al, al
je 0x4200f3
mov eax, dword [esp + 4]
mov esi, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x54]
push ebp
push esi
call fcn.004189ac
pop ecx
pop edx
test eax, eax
je 0x4200e6
cmp dword [eax + 0x70], 0
je 0x4200e6
add eax, 0x3c
lea ecx, [esp + 0x10]
mov edx, eax
call fcn.0042066f
lea ecx, [esp + 0x60]
mov edx, esi
push ebp
call fcn.0041cfc7
pop eax
add ebx, 0x10
add edi, 0xfffffff0
jmp 0x420087
mov ecx, dword [esp + 0x18]
jmp 0x42002a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
call fcn.00421312
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
call fcn.00421312
lea ebx, [edi + esi*8]
shl esi, 3
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], ebx
test esi, esi
je 0x420159
mov edx, dword [edi]
lea ebp, [edi + 8]
lea ecx, [esp + 0x3c]
push dword [edi + 4]
call fcn.0041cfc7
pop eax
add esi, 0xfffffff8
mov edi, ebp
jmp 0x42013c
mov edi, dword [esp]
lea ecx, [esp + 0x60]
mov dword [esp + 0x68], ebx
lea esi, [edi + 0x14]
call fcn.00420dc4
mov edx, dword [edi]
lea ecx, [esp + 0x3c]
push dword [edi + 4]
call fcn.0041cfc7
pop eax
mov edi, esi
jmp 0x41ffe4
lea ecx, [esp + 0x48]
push 4
pop eax
mov dword [ecx], eax
and dword [ecx + 4], 0
and dword [ecx + 8], 0
lea ecx, [esp + 0x90]
mov ebx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd8]
lea edi, [esp + 0x60]
mov dword [ecx], eax
and dword [ecx + 4], 0
and dword [ecx + 8], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
lea edx, [ebx + edx*8]
lea esi, [ecx + eax*8]
mov dword [edi], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp], edx
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
mov dword [esp + 0xc], esi
mov dword [edi + 0xc], edx
lea ecx, [esp + 0x60]
call fcn.00420693
test eax, eax
je 0x420299
mov ebx, eax
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x78]
push dword [ebx + 4]
push dword [ebx]
call fcn.004206c2
pop ecx
pop edx
test eax, eax
je 0x4201da
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push ebx
call fcn.00420ab2
pop eax
cmp dword [esp + 0xdc], 0
je 0x420265
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
shl edi, 3
mov eax, esi
test edi, edi
je 0x420265
mov edx, dword [eax]
mov ecx, dword [esp + 0xdc]
lea ebp, [eax + 8]
push 0x583650
push dword [eax + 4]
call fcn.004208f6
pop ecx
pop edx
add edi, 0xfffffff8
test al, al
mov eax, ebp
je 0x42022d
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.0041872c
jmp 0x4201da
mov edx, dword [esp + 4]
lea esi, [esp + 0xb4]
mov ecx, esi
push ebx
call fcn.00420bef
pop eax
lea ecx, [esp + 0x90]
mov edx, esi
call fcn.00420916
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
call fcn.00420d75
jmp 0x4201da
lea ecx, [esp + 0x9c]
push 4
pop eax
mov dword [ecx], eax
and dword [ecx + 4], 0
and dword [ecx + 8], 0
lea ecx, [esp + 0x54]
mov edx, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
and dword [ecx + 4], 0
and dword [ecx + 8], 0
lea ecx, [esp + 0x60]
mov ebp, ecx
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xd4]
mov dword [ecx + 8], eax
mov eax, dword [esp]
mov dword [esp], edx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], eax
mov ecx, ebp
call fcn.00420693
test eax, eax
je 0x4203fe
mov edx, dword [esp + 4]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 0x4c]
mov edx, dword [edx + 0x54]
push edi
push ebx
call fcn.004189ac
pop ecx
pop edx
test eax, eax
je 0x420300
mov ecx, dword [esp]
mov edx, dword [esp + 0xc]
mov esi, eax
push dword [eax + 0x40]
push dword [eax + 0x3c]
call fcn.004208bb
pop ecx
pop edx
test al, al
jne 0x420300
cmp dword [esp + 0xdc], 0
je 0x420369
mov ecx, dword [esp + 0xdc]
mov edx, ebx
push 0x583650
push edi
call fcn.004208f6
pop ecx
pop edx
test al, al
jne 0x420300
lea edi, [esp + 0x1c]
mov edx, esi
mov ecx, edi
push 1
push dword [esp + 0x34]
call fcn.00418f02
pop eax
pop ecx
cmp dword [esi + 0x14], 0
je 0x4203eb
mov esi, dword [esi + 0x18]
mov eax, dword [esp + 8]
lea edx, [esi + 1]
cmp eax, edx
jae 0x4203b2
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
call fcn.00420970
pop eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov edx, eax
push 0x583c88
push esi
call fcn.00404e36
pop ecx
pop edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, eax
call fcn.0041c1b0
mov eax, dword [esp + 0x24]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x1c]
movsd qword [esi], xmm0
jmp 0x420300
lea ecx, [esp + 0x9c]
mov edx, edi
call fcn.00420916
jmp 0x420300
lea esi, [esp + 0x1c]
lea edx, [esp + 0x9c]
mov dword [esi], 4
and dword [esi + 4], 0
and dword [esi + 8], 0
mov ecx, esi
call fcn.00420700
lea edx, [esp + 0x90]
mov ecx, esi
call fcn.00420700
imul ecx, dword [esp + 8], 0xc
mov edx, dword [esp + 0x28]
lea edi, [esp + 0x60]
mov eax, dword [esp + 0x58]
lea ebx, [esp + 0x10]
and dword [edi], 0
and dword [edi + 0x10], 0
add ecx, edx
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], ecx
mov ecx, ebx
mov edx, edi
call fcn.00420767
cmp dword [esp + 0x10], 0
je 0x420471
mov ecx, esi
mov edx, ebx
call fcn.00420847
jmp 0x420456
lea ecx, [esp + 0x60]
call fcn.004207fb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
mov ecx, dword [esp]
call fcn.0041872c
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
call fcn.0041872c
cmp dword [esp + 0x38], 0
jne 0x4204bb
lea ecx, [esp + 0xa8]
call fcn.0042087d
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret