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

Disassembly:
push 0xffffffffffffffff
push 0x484b4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x30]
push edi
xor ebx, ebx
push ecx
mov ecx, dword [esp + 0x68]
mov edi, 0xd
push ebx
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], edi
mov dword [ebp], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
call fcn.00413a50
cmp dword [eax], 8
jne 0x412852
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0x38]
lea ecx, [esp + 0x24]
push ecx
push 0x497694
mov ecx, eax
call fcn.00411ac0
mov esi, dword [eax]
xor edx, edx
cmp esi, 1
sete dl
mov eax, edx
cmp eax, ebx
jne 0x412422
lea ecx, [esp + 0x24]
call fcn.00411e70
jmp 0x412852
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
mov dword [ebp + 4], eax
call fcn.00411e70
cmp dword [ebp + 4], ebx
jle 0x412852
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0x38]
lea ecx, [esp + 0x24]
push ecx
push 0x49768c
mov ecx, eax
call fcn.00411ac0
mov esi, dword [eax]
xor edx, edx
cmp esi, 1
sete dl
mov eax, edx
cmp eax, ebx
jne 0x412473
lea ecx, [esp + 0x24]
call fcn.00411e70
jmp 0x412852
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], esi
call fcn.00411e70
cmp esi, ebx
jl 0x412852
mov esi, dword [ebp + 4]
mov eax, esi
shl eax, 4
push eax
call fcn.0047c2bc
add esp, 4
cmp eax, ebx
je 0x4124b5
lea edx, [esi - 1]
mov ecx, eax
cmp edx, ebx
jl 0x4124b7
inc edx
mov dword [ecx], edi
add ecx, 0x10
dec edx
jne 0x4124ab
jmp 0x4124b7
xor eax, eax
mov ecx, dword [ebp + 4]
push 4
push ecx
mov dword [ebp + 8], eax
call fcn.0041b6c0
mov edx, dword [ebp + 4]
push 4
push edx
mov dword [ebp + 0xc], eax
call fcn.0041b6c0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
add esp, 0x10
mov eax, dword [ecx]
call dword [eax + 8]
push 0x28
mov dword [esp + 0x28], 5
call fcn.0047c2bc
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x5c], ebx
je 0x41251b
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x40]
push 1
push edx
push ecx
mov ecx, eax
call fcn.0041e4b0
mov ebx, eax
push 0x38
mov dword [esp + 0x60], 0xffffffff
call fcn.0047c2bc
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x5c], 1
je 0x412582
push 0xa0
call fcn.0047c2bc
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x5c], 2
je 0x412568
mov edx, dword [esp + 0x64]
push ebx
push edx
mov ecx, eax
call fcn.0041c040
jmp 0x41256a
xor eax, eax
push 0
push eax
mov eax, dword [esp + 0x6c]
mov ecx, esi
push eax
mov byte [esp + 0x68], 1
call fcn.0041b840
mov edi, eax
jmp 0x412584
xor edi, edi
mov eax, dword [ebp + 4]
xor esi, esi
test eax, eax
mov dword [esp + 0x5c], 0xffffffff
jle 0x412636
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
mov ecx, edi
call fcn.0041b8c0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x54]
push 0
push edx
mov ecx, edi
call fcn.0041b8c0
mov ecx, dword [esp + 0x24]
mov eax, 1
cmp ecx, eax
jne 0x4126b7
cmp dword [esp + 0x44], eax
jne 0x4126b7
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x2c]
mov dword [eax + esi*4], ecx
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
mov dword [eax + esi*4], edx
call fcn.00411e70
lea ecx, [esp + 0x44]
call fcn.00411e70
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + esi*4]
mov ecx, dword [esp + 0x68]
test eax, eax
jl 0x412699
mov eax, dword [ecx + esi*4]
test eax, eax
jl 0x412699
test esi, esi
jle 0x41262a
cmp eax, dword [ecx + esi*4 - 4]
jl 0x412699
mov eax, dword [ebp + 4]
inc esi
cmp esi, eax
jl 0x412599
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
cmp eax, 0xffffffff
je 0x41264e
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
cmp eax, 0xffffffff
jne 0x412642
xor ebx, ebx
cmp edi, ebx
je 0x412664
mov ecx, edi
call fcn.0041b890
push edi
call fcn.0047c2e5
add esp, 4
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x18]
cmp esi, dword [edi]
jge 0x412680
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi]
inc esi
cmp esi, eax
jl 0x412670
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], ebx
cmp eax, ebx
jle 0x412849
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
jmp 0x4126eb
test edi, edi
je 0x4126b1
mov ecx, edi
call fcn.0041b890
push edi
call fcn.0047c2e5
mov ecx, dword [esp + 0x6c]
add esp, 4
push ecx
jmp 0x41284a
lea ecx, [esp + 0x24]
call fcn.00411e70
lea ecx, [esp + 0x44]
call fcn.00411e70
test edi, edi
je 0x4126dd
mov ecx, edi
call fcn.0041b890
push edi
call fcn.0047c2e5
add esp, 4
mov edx, dword [esp + 0x68]
push edx
jmp 0x41284a
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
dec eax
mov ebx, 5
cmp ecx, eax
mov dword [esp + 0x24], ebx
push 0x28
jne 0x41272e
call fcn.0047c2bc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x5c], 3
je 0x412763
mov edx, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov ecx, eax
call fcn.0041e4b0
jmp 0x412765
call fcn.0047c2bc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x5c], 4
je 0x412763
mov ecx, dword [edi + 4]
mov esi, dword [edi]
sub ecx, esi
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x40]
push 1
push edx
push ecx
mov ecx, eax
call fcn.0041e4b0
jmp 0x412765
xor eax, eax
push 0x38
mov dword [esp + 0x60], 0xffffffff
mov esi, eax
call fcn.0047c2bc
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov dword [esp + 0x5c], ebx
je 0x4127ca
push 0xa0
call fcn.0047c2bc
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x5c], 6
je 0x4127b0
mov edx, dword [esp + 0x64]
push esi
push edx
mov ecx, eax
call fcn.0041c040
jmp 0x4127b2
xor eax, eax
push 0
push eax
mov eax, dword [esp + 0x6c]
mov ecx, edi
push eax
mov byte [esp + 0x68], 5
call fcn.0041b840
mov edi, eax
jmp 0x4127cc
xor edi, edi
mov ecx, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
push 0
push 0
push 0
push 0
add ecx, ebx
push 0
push ecx
mov ecx, edi
mov dword [esp + 0x74], 0xffffffff
call fcn.0041b8c0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
cmp eax, 0xffffffff
je 0x412807
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
cmp eax, 0xffffffff
jne 0x4127fb
test edi, edi
je 0x41281b
mov ecx, edi
call fcn.0041b890
push edi
call fcn.0047c2e5
add esp, 4
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 4]
inc ecx
add edi, 4
add esi, 0x10
cmp ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jl 0x4126e7
mov edi, dword [esp + 0x68]
push edi
call fcn.0041b7f0
add esp, 4
lea ecx, [esp + 0x34]
call fcn.00411e70
mov ecx, dword [esp + 0x54]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8