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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd94
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xcbc]
lea ecx, [eax + 0x88]
mov dword [esi + 0x34], ecx
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xdc]
call fcn.00426a9e
mov eax, dword [esi + 0xcbc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [ebp - 0xbc], edx
je 0x41028e
cmp dword [ecx], 0xffff8300
jl 0x410287
mov edi, dword [ecx + 4]
mov edx, 0x7d00
cmp edi, edx
jg 0x410287
cmp dword [ecx + 8], 0xffff8300
jl 0x410287
cmp dword [ecx + 0xc], edx
jle 0x41028e
mov ecx, 1
jmp 0x410290
xor ecx, ecx
mov dword [esi + 0x20], ecx
mov dword [ebp - 0xd8], ecx
mov ecx, dword [eax]
add ecx, 0x164
mov dword [esi + 0x78], ecx
mov edx, dword [ecx + 0x1c]
test edx, edx
jne 0x4102b2
mov dword [esi + 0x78], 0
mov edi, dword [esi]
add eax, 0x8c
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
lea edx, [esi + 0x48]
xor ebx, ebx
lea ecx, [eax + 4]
push edx
xor edx, edx
mov dword [esi + 4], ecx
mov dh, byte [edi + eax + 3]
mov bl, byte [edi + eax + 1]
mov dl, byte [edi + eax + 2]
shl edx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [edi + eax]
mov eax, dword [esi + 0x3c]
shl edx, 8
or edx, ebx
add edx, ecx
lea ecx, [ebp - 0xd94]
push edx
push edi
push eax
call fcn.00412d6e
lea ecx, [ebp - 0xd94]
call fcn.00412cae
push 4
lea ecx, [ebp - 0xd94]
call fcn.00412cbe
push 4
lea ecx, [ebp - 0xd94]
mov dword [ebp - 0x104], eax
call fcn.00412cbe
mov ecx, esi
mov dword [ebp - 0x100], eax
call fcn.0041350e
test eax, eax
je 0x4105cc
mov ecx, dword [esi + 0xcbc]
xor edi, edi
cmp word [ecx + 0x66], di
je 0x410350
mov ecx, esi
call fcn.0040ffae
mov ecx, esi
call fcn.00412cae
push 4
mov ecx, esi
call fcn.00412cbe
push 4
mov ecx, esi
mov dword [esi + 0xc90], eax
call fcn.00412cbe
mov dword [esi + 0xc94], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [ebp + 8], edi
lea edx, [ebp - 0x24]
mov ecx, esi
push edx
call fcn.00413b2e
mov ebx, eax
test ebx, ebx
je 0x41044e
cmp ebx, 0x80
je 0x4105bd
test bl, 9
je 0x4103e5
test edi, edi
je 0x4103b3
lea ecx, [ebp - 0xdc]
call fcn.004278ae
mov eax, dword [esi + 0xc9c]
mov ecx, dword [esi + 0x8c]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
test ecx, ecx
je 0x4103e3
mov eax, dword [eax + 4]
test eax, eax
jle 0x4103e3
push ecx
push eax
lea ecx, [ebp - 0xdc]
call fcn.004275be
mov edi, 1
jmp 0x4103e5
xor edi, edi
test bl, 6
je 0x41037e
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0xca0]
mov ecx, dword [eax + edx*4]
mov edx, dword [esi + 0xca4]
mov dword [esi + 0x24], ecx
mov eax, dword [eax + edx*4]
cmp ecx, eax
mov dword [esi + 0x28], eax
jne 0x410413
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41041e
xor eax, eax
jmp 0x41042c
mov ebx, dword [esi + 0xcb8]
xor eax, eax
test ebx, ebx
setne al
inc eax
test ecx, ecx
mov dword [esi + 0x2c], eax
jne 0x410442
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x410442
mov dword [ebp + 8], ecx
jmp 0x41037e
mov dword [ebp + 8], 1
jmp 0x41037e
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0xd94]
push eax
call fcn.00413b2e
test eax, eax
je 0x410470
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0xd94]
call fcn.00413b2e
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [esi + 0x74]
sub eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
imul ebx
shrd eax, edx, 0x10
adc eax, 0
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x20]
add edx, ecx
sub eax, ebx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
imul ebx
shrd eax, edx, 0x10
adc eax, 0
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 0x74]
add edx, ecx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
sub ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
imul ebx
shrd eax, edx, 0x10
adc eax, 0
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x50]
add eax, edx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
imul ebx
shrd eax, edx, 0x10
adc eax, 0
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x74]
add eax, edx
mov edx, dword [ebp - 0x4c]
sub edx, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
imul ebx
shrd eax, edx, 0x10
adc eax, 0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x48]
add ecx, eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
imul ebx
shrd eax, edx, 0x10
adc eax, 0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
mov dword [ebp - 0x2c], ecx
je 0x410587
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], 1
test eax, eax
jne 0x41058e
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4105a1
lea edx, [ebp - 0x40]
lea ecx, [esi + 0x1c]
push edx
call fcn.0040d5de
test edi, edi
je 0x41037e
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xdc]
push eax
call fcn.0042761e
jmp 0x41037e
test edi, edi
je 0x4105cc
lea ecx, [ebp - 0xdc]
call fcn.004278ae
lea ecx, [ebp - 0xd94]
call fcn.00412e4e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4