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

Disassembly:
sub esp, 0x40
mov eax, dword [0x448008]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push ebx
push esi
mov esi, dword [esp + 0x58]
push edi
mov edi, ecx
mov dword [esp + 0x40], edx
mov edx, dword [eax]
mov ebx, dword [esi]
mov ecx, dword [esp + 0x58]
mov dword [eax], 0
mov dword [esi], 0
cmp dword [edi + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ebx
je 0x41c3c2
mov eax, dword [edi + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004219ad
add esp, 0x40
ret
cmp dword [edi + 0xc], 0
lea eax, [edi + 0x20]
push ebp
mov dword [esp + 0x38], eax
mov dword [eax], 2
je 0x41c4cd
push eax
push dword [esp + 0x6c]
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x44]
mov ebx, dword [esp + 0x6c]
push ebx
push eax
push ecx
lea eax, [esp + 0x58]
mov dword [esp + 0x58], edx
push eax
mov eax, dword [edi + 0x88]
push 0
push dword [edi + 0x78]
call eax
mov edx, dword [edi + 0x20]
mov ebp, eax
mov ecx, dword [esp + 0x5c]
add esp, 0x20
mov dword [edi + 0x1c], ebp
mov dword [esi], ecx
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x44]
add eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
mov dword [edi + 0x14], eax
test ebp, ebp
jne 0x41c436
test ebx, ebx
jne 0x41c436
cmp edx, 1
jne 0x41c43d
mov dword [edi + 0x18], 1
mov ecx, dword [edi + 8]
cmp ecx, 1
jne 0x41c460
mov ecx, dword [esp + 0x14]
mov eax, ebp
pop ebp
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004219ad
add esp, 0x40
ret
cmp dword [edi + 0x18], 0
je 0x41c4b8
mov ebx, 1
cmp ecx, ebx
jbe 0x41c4b2
mov ebp, dword [esp + 0x58]
lea esi, [edi + 0x90]
nop dword [eax]
push eax
push dword [edi + 0xc]
mov eax, dword [esi + 0x14]
push dword [esi]
call eax
add esp, 0xc
cmp dword [esp + 0x20], 1
je 0x41c4a2
test ebp, ebp
je 0x41c4a5
mov ecx, dword [esp + 0x24]
cmp dword [edi + 0x14], ecx
jne 0x41c4a5
mov eax, dword [edi + 0x14]
inc ebx
add esi, 0x18
cmp ebx, dword [edi + 8]
jb 0x41c480
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004219ad
add esp, 0x40
ret
cmp dword [edi + 8], 1
je 0x41c518
cmp dword [edi + 4], 0
jne 0x41c50e
mov eax, dword [edi]
push 0x60000
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 4], eax
test eax, eax
jne 0x41c507
pop ebp
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004219ad
add esp, 0x40
ret
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0x20]
mov dword [esp + 0x28], 0
jmp 0x41c520
mov edx, dword [esp + 0x68]
mov dword [esp + 0x28], edx
mov ebp, dword [edi + 8]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 1
mov dword [eax], 2
test ebp, ebp
je 0x41c603
lea eax, [esi + 5]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
mov dword [esp + 0x34], eax
test esi, esi
jne 0x41c56c
mov eax, dword [esp + 0x64]
mov edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
sub ecx, dword [eax]
jmp 0x41c58f
mov eax, dword [edi + esi*4 + 0x2c]
lea edx, [esi - 1]
mov ecx, dword [edi + esi*4 + 0x38]
shl edx, 0x11
add edx, eax
mov dword [esp + 0x3c], eax
add edx, dword [edi + 4]
mov eax, dword [edi + esi*4 + 0x20]
sub ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
lea eax, [ebp - 1]
mov dword [esp + 0x40], ecx
cmp esi, eax
jne 0x41c5ab
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
sub ecx, dword [ebp]
jmp 0x41c5c6
mov eax, dword [edi + esi*4 + 0x30]
cmp eax, dword [edi + esi*4 + 0x3c]
jne 0x41c5d9
mov ebp, dword [esp + 0x14]
mov eax, esi
shl eax, 0x11
mov ecx, 0x20000
add eax, dword [edi + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + esi*4 + 0x68]
test ecx, ecx
je 0x41c61e
test ebx, ebx
cmovne ecx, ebx
mov ebx, ecx
mov edx, dword [esp + 0x18]
mov ebp, dword [edi + 8]
inc esi
mov ecx, dword [esp + 0x10]
cmp esi, ebp
jb 0x41c545
lea eax, [edi + 0x20]
test edx, edx
jne 0x41c520
cmp dword [esp + 0x20], 0
je 0x41c609
mov eax, dword [esp + 0x38]
mov dword [eax], 1
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004219ad
add esp, 0x40
ret
lea ecx, [esp + 0x48]
push ecx
push dword [esp + 0x2c]
lea ecx, [esp + 0x48]
push dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x50]
push dword [eax]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
add esp, 0x20
test ecx, ecx
je 0x41c654
test ebx, ebx
mov dword [edi + esi*4 + 0x68], ecx
cmove ebx, ecx
mov eax, dword [esp + 0x48]
xor edx, edx
cmp eax, 1
sete dl
je 0x41c677
cmp dword [edi + 8], 1
mov dword [esp + 0x20], 0
jne 0x41c677
test ecx, ecx
jne 0x41c677
mov dword [edi + 0x20], eax
mov ecx, dword [esp + 0x40]
test esi, esi
jne 0x41c68b
mov eax, dword [esp + 0x1c]
add dword [eax], ecx
add dword [esp + 0x10], ecx
jmp 0x41c68f
add dword [edi + esi*4 + 0x2c], ecx
mov eax, dword [edi + 8]
dec eax
cmp esi, eax
mov eax, dword [esp + 0x3c]
jne 0x41c6a4
add dword [ebp], eax
add dword [esp + 0x44], eax
jmp 0x41c6b4
mov dword [edi + esi*4 + 0x3c], eax
mov dword [edi + esi*4 + 0x30], 0
mov dword [edi + esi*4 + 0x24], edx
test eax, eax
jne 0x41c6c0
test ecx, ecx
je 0x41c5d9
mov edx, 1
mov dword [esp + 0x18], edx
jmp 0x41c5dd