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

Disassembly:
push 0xffffffffffffffff
push 0x4fb047
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xd8]
xor esi, esi
push edi
mov dword [esp + 0x58], 0x510274
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call fcn.0046e0e0
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
call fcn.0046e0e0
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x64], eax
call fcn.00414240
mov eax, dword [ebx + 0xb0]
lea ecx, [esp + 0x8c]
push eax
mov dword [esp + 0x118], esi
call fcn.0046fda0
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], 0x510268
lea ecx, [esp + 0x30]
push 1
lea edx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], 1
call fcn.00414370
mov dword [esp + 0x18], 0x51025c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x38]
or edi, 0xffffffff
xor eax, eax
cmp ecx, esi
mov byte [esp + 0x114], 2
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], eax
jle 0x41343a
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx + eax*4]
mov eax, dword [esi + 4]
cmp edi, eax
jge 0x41325e
inc edi
cmp edi, eax
jge 0x41325e
mov ecx, dword [ebx + 0xd8]
push edi
call fcn.0046e240
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
inc eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00429680
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc edi
mov dword [edx + eax*4], ebp
mov eax, dword [esi + 4]
cmp edi, eax
jl 0x413228
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
jne 0x4132d4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
cmp eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
jle 0x4132c8
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xdc]
push eax
call fcn.0046e240
mov edi, eax
test edi, edi
je 0x413295
or dword [edi + 0xc], 0x40000000
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
mov ebp, eax
inc eax
push eax
lea ecx, [esp + 0x20]
call fcn.00429680
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [ecx + ebp*4], edi
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
inc edi
inc eax
mov dword [esp + 0x10], edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x413278
mov edx, dword [esi + 4]
mov dword [esp + 0x10], edx
jmp 0x413421
cmp eax, 1
jne 0x413344
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
cmp eax, ecx
jle 0x413415
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0xd8]
call fcn.0046e240
mov edi, eax
test edi, edi
je 0x41330c
or dword [edi + 0xc], 0x20000000
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
mov ebp, eax
inc eax
push eax
lea ecx, [esp + 0x20]
call fcn.00429680
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edx + ebp*4], edi
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
inc edi
inc eax
mov dword [esp + 0x10], edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4132ef
jmp 0x413415
cmp eax, 2
jne 0x413421
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, ecx
jle 0x4133af
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0xd8]
call fcn.0046e240
mov edi, eax
test edi, edi
je 0x41337c
or dword [edi + 0xc], 0x20000000
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
mov ebp, eax
inc eax
push eax
lea ecx, [esp + 0x20]
call fcn.00429680
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [edx + ebp*4], edi
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
inc edi
inc eax
mov dword [esp + 0x14], edi
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41335f
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x413415
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0xdc]
call fcn.0046e240
mov edi, eax
test edi, edi
je 0x4133e2
or dword [edi + 0xc], 0x40000000
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
mov ebp, eax
inc eax
push eax
lea ecx, [esp + 0x20]
call fcn.00429680
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [edx + ebp*4], edi
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
inc edi
inc eax
mov dword [esp + 0x14], edi
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4133c5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x413215
mov ecx, dword [ebx + 0xd8]
call fcn.0046e0e0
cmp edi, eax
jge 0x413493
mov ecx, dword [ebx + 0xd8]
lea esi, [edi + 1]
call fcn.0046e0e0
cmp esi, eax
jge 0x413493
mov ecx, dword [ebx + 0xd8]
push esi
call fcn.0046e240
mov edi, eax
mov eax, dword [esp + 0x20]
mov ebp, eax
inc eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00429680
mov eax, dword [esp + 0x1c]
inc esi
mov dword [eax + ebp*4], edi
mov ecx, dword [ebx + 0xd8]
call fcn.0046e0e0
cmp esi, eax
jl 0x41345b
mov ecx, dword [ebx + 0xdc]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov dword [esp + 0x74], 0x510244
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ebp
call fcn.0046e0e0
push ebp
lea ecx, [esp + 0xd0]
mov dword [esp + 0x84], eax
call fcn.00414240
mov ecx, dword [ebx + 0xb0]
mov byte [esp + 0x114], 3
push ecx
lea ecx, [esp + 0xd0]
call fcn.0046fda0
mov dword [esp + 0x48], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], 0x510268
lea edx, [esp + 0x44]
push 1
lea eax, [esp + 0x78]
push edx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x120], 4
call fcn.00414370
mov eax, dword [esp + 0x48]
mov esi, 0x510238
cmp eax, ebp
mov dword [esp + 0x44], esi
je 0x413547
push eax
call fcn.004db92d
add esp, 4
mov edi, 0x51022c
mov dword [esp + 0xcc], edi
lea ecx, [esp + 0xcc]
mov byte [esp + 0x114], 6
call fcn.00414190
lea ecx, [esp + 0xdc]
mov byte [esp + 0x114], 5
call fcn.00413a90
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0x51025c
cmp eax, ebp
je 0x413594
push eax
call fcn.004db92d
add esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], esi
cmp eax, ebp
je 0x4135a9
push eax
call fcn.004db92d
add esp, 4
mov dword [esp + 0x8c], edi
mov eax, dword [esp + 0x98]
mov dword [esp + 0x114], 8
cmp eax, ebp
jle 0x4135f2
mov eax, dword [esp + 0xb0]
xor esi, esi
cmp eax, ebp
jle 0x4135f2
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx + esi*4]
push eax
call fcn.004db92d
mov eax, dword [esp + 0xb4]
add esp, 4
inc esi
cmp esi, eax
jl 0x4135d3
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xa4]
call fcn.00429680
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb0], ebp
mov byte [esp + 0x114], 7
call fcn.00413a90
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x108
ret