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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x4f3008]
xor eax, esp
mov dword [esp + 0x158], eax
cmp dword [ebp + 0x10], 0
mov eax, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], ebx
je 0x415327
mov edi, dword [eax + 0x4f168]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x414db8
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x414dae
nop
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
call dword [eax + 0x10]
mov ecx, esi
test esi, esi
jne 0x414da0
mov eax, dword [edi + 4]
mov dword [eax + 4], 0
push 0x2c
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.00499ca0
add esp, 0xc
lea eax, [esp + 0xe0]
push 0x2c
push 0
push eax
call fcn.00499ca0
add esp, 0xc
lea eax, [esp + 0x10c]
push 0x2c
push 0
push eax
call fcn.00499ca0
add esp, 0xc
mov ecx, ebx
call fcn.004010d0
mov edi, eax
mov dword [esp + 0x24], 0
lea eax, [ebx + 0x1c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x98], eax
lea ecx, [ebx + 0xc]
lea eax, [ebx + 0x20]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x9c], eax
lea ecx, [ebx + 0x10]
lea eax, [ebx + 0x24]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0xa0], eax
lea ecx, [ebx + 0x14]
lea eax, [ebx + 0x28]
mov dword [esp + 0x90], ecx
mov dword [esp + 0xa4], eax
lea ecx, [ebx + 0x18]
lea eax, [ebx + 0x2c]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], eax
lea eax, [ebx + 0x30]
mov dword [esp + 0xac], eax
lea eax, [ebx + 0x34]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x10c]
push eax
push dword [ebx + 0x144]
call fcn.00414c00
lea ecx, [edi + 0x6c]
lea eax, [ecx + 4]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
lea eax, [ecx + 8]
mov dword [esp + 0xbc], eax
lea eax, [ecx + 0xc]
mov dword [esp + 0xc0], eax
lea eax, [ecx + 0x10]
mov dword [esp + 0xc4], eax
lea eax, [ecx + 0x14]
mov dword [esp + 0xc8], eax
lea eax, [ecx + 0x18]
mov dword [esp + 0xcc], eax
lea eax, [ecx + 0x1c]
mov dword [esp + 0xd0], eax
lea eax, [ecx + 0x20]
mov dword [esp + 0xd4], eax
lea eax, [ecx + 0x24]
mov dword [esp + 0xd8], eax
lea eax, [ecx + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0x10c]
push eax
push dword [edi + 0x58]
call fcn.00414c00
xor eax, eax
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
add ebx, 0x1fc
mov esi, dword [ebx]
test esi, esi
je 0x415092
cmp dword [esi + 0x24], 0
jl 0x41508c
cmp dword [esi + 0x2c], 0
jl 0x41508c
cmp dword [esi + 0x88], 0
jl 0x41508c
cmp dword [esi + 0x90], 0
jl 0x41508c
mov eax, dword [esi + 0x20]
test eax, eax
je 0x414f6f
cmp eax, 1
je 0x414f6f
cmp eax, 2
je 0x414f6f
xor eax, eax
jmp 0x414f74
mov eax, 1
test eax, eax
je 0x41508c
cmp dword [esi + 0x20], 0
jne 0x414fce
lea ecx, [esi + 0x30]
call fcn.0047e7b0
test eax, eax
jne 0x415075
mov eax, dword [esi + 0xa0]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x414fc1
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x14]
call fcn.0048e580
cmp word [esp + 0x14], 0xa
je 0x415075
mov esi, dword [esi + 4]
test esi, esi
jne 0x414fa2
mov dword [esp + 0x20], 1
jmp 0x415075
mov eax, dword [esp + 0x10]
cmp dword [eax + 0xa8], 0
je 0x41500b
cmp dword [esi + 0x30], 0
je 0x41500b
test edi, edi
jne 0x414ff1
mov ecx, str.Array
call fcn.0046c840
mov edi, eax
mov ecx, dword [0x4faeb4]
push esi
push edi
mov ecx, dword [ecx + 0x56f84]
mov ecx, dword [ecx + 4]
call fcn.0046a9c0
test eax, eax
je 0x415075
lea ecx, [esi + 0x30]
lea eax, [ecx + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
lea eax, [ecx + 8]
mov dword [esp + 0x38], eax
lea eax, [ecx + 0xc]
mov dword [esp + 0x3c], eax
lea eax, [ecx + 0x10]
mov dword [esp + 0x40], eax
lea eax, [ecx + 0x14]
mov dword [esp + 0x44], eax
lea eax, [ecx + 0x18]
mov dword [esp + 0x48], eax
lea eax, [ecx + 0x1c]
mov dword [esp + 0x4c], eax
lea eax, [ecx + 0x20]
mov dword [esp + 0x50], eax
lea eax, [ecx + 0x24]
mov dword [esp + 0x54], eax
lea eax, [ecx + 0x28]
mov dword [esp + 0x58], eax
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [esp + ecx + 0x30]
mov eax, dword [eax]
add dword [esp + ecx + 0x138], eax
add ecx, 4
cmp ecx, 0x2c
jl 0x415060
mov eax, dword [esp + 0x1c]
add ebx, 4
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0x14
jl 0x414f22
jmp 0x415092
mov dword [ebx], 0
test edi, edi
je 0x41509c
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [esp + 0x20], 0
mov ebx, dword [esp + 0x10]
je 0x415116
mov eax, dword [0x4faeb4]
push ebx
mov ecx, dword [eax + 0x56f84]
mov ecx, dword [ecx + 4]
call fcn.0046a850
mov dword [esp + 0x24], eax
test eax, eax
je 0x415116
lea edx, [eax + 0x30]
lea eax, [edx + 0xc]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], eax
lea ecx, [edx + 4]
lea eax, [edx + 0x10]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x6c], eax
lea ecx, [edx + 8]
lea eax, [edx + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x70], eax
lea eax, [edx + 0x18]
mov dword [esp + 0x74], eax
lea eax, [edx + 0x1c]
mov dword [esp + 0x78], eax
lea eax, [edx + 0x20]
mov dword [esp + 0x7c], eax
lea eax, [edx + 0x24]
mov dword [esp + 0x80], eax
lea eax, [edx + 0x28]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
test edi, edi
je 0x415234
nop word [eax + eax]
mov eax, dword [0x4fb114]
mov eax, dword [eax + 0x204]
test eax, eax
je 0x415225
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x415225
mov eax, dword [edi + 0x14]
cmp dword [esi + 8], eax
je 0x415165
mov esi, dword [esi + 4]
test esi, esi
jne 0x415154
jmp 0x415225
lea ecx, [esi + 0x4c]
lea eax, [ecx + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
lea eax, [ecx + 8]
mov dword [esp + 0x38], eax
lea eax, [ecx + 0xc]
mov dword [esp + 0x3c], eax
lea eax, [ecx + 0x10]
mov dword [esp + 0x40], eax
lea eax, [ecx + 0x14]
mov dword [esp + 0x44], eax
lea eax, [ecx + 0x18]
mov dword [esp + 0x48], eax
lea eax, [ecx + 0x1c]
mov dword [esp + 0x4c], eax
lea eax, [ecx + 0x20]
mov dword [esp + 0x50], eax
lea eax, [ecx + 0x24]
mov dword [esp + 0x54], eax
lea eax, [ecx + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x10c]
push eax
push dword [esi + 0x78]
call fcn.00414c00
mov ebx, dword [esi + 0x7c]
test ebx, ebx
jle 0x415204
xor edx, edx
nop
mov eax, dword [esp + edx + 0x30]
mov eax, dword [eax]
test eax, eax
je 0x4151fa
mov ecx, dword [esi + 0x20]
sub ecx, dword [edi + 0xc]
imul ecx, ebx
test ecx, ecx
je 0x4151fa
test eax, eax
jle 0x4151ef
sub eax, ecx
jmp 0x4151f3
jns 0x4151fa
add eax, ecx
add dword [esp + edx + 0xe0], eax
add edx, 4
cmp edx, 0x2c
jl 0x4151d0
jmp 0x415225
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [esp + ecx + 0x30]
mov eax, dword [eax]
add dword [esp + ecx + 0xe0], eax
add ecx, 4
cmp ecx, 0x2c
jl 0x415210
mov edi, dword [edi + 4]
test edi, edi
jne 0x415130
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, esi
push 0
push 0
push 1
push dword [ebx + 0x4c]
push dword [ebx + 0x48]
call fcn.004041d0
test eax, eax
je 0x415261
lea ecx, [esp + 0x10c]
push ecx
push dword [eax + 0x40]
mov ecx, esi
call fcn.00414c00
mov esi, dword [0x4fb114]
mov edx, 1
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + edx*4 + 0x84]
mov dword [edi + edx*4], 0
mov ecx, dword [eax]
mov eax, dword [esp + edx*4 + 0xb0]
mov dword [edi + edx*4], ecx
mov eax, dword [eax]
add eax, ecx
mov dword [edi + edx*4], eax
cmp dword [esi + 0x3b0], 0
je 0x4152b7
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + edx*4 + 0xd0]
jmp 0x4152c9
mov ecx, dword [edx*4 + 0x4faf1c]
test ecx, ecx
jne 0x4152c9
mov ecx, dword [esi + edx*4 + 0x320]
cmp eax, ecx
jg 0x4152d6
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov dword [edi + edx*4], ecx
test ebx, ebx
je 0x4152e3
mov eax, dword [esp + edx*4 + 0x58]
add ecx, dword [eax]
mov eax, dword [esp + edx*4 + 0x108]
add eax, dword [esp + edx*4 + 0xdc]
add eax, dword [esp + edx*4 + 0x134]
add eax, ecx
mov dword [edi + edx*4], eax
inc edx
cmp edx, 0xc
jl 0x415280
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x50]
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebx + 0xc]
mov ecx, 1
mov dword [esp + 0x5c], eax
lea edx, [esp + 0x5c]
lea eax, [ebx + 0x10]
mov dword [esp + 0x60], eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x64], eax
lea eax, [ebx + 0x18]
mov dword [esp + 0x68], eax
lea eax, [ebx + 0x1c]
mov dword [esp + 0x6c], eax
lea eax, [ebx + 0x20]
mov dword [esp + 0x70], eax
lea eax, [ebx + 0x24]
mov dword [esp + 0x74], eax
lea eax, [ebx + 0x28]
mov dword [esp + 0x78], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0x7c], eax
lea eax, [ebx + 0x30]
mov dword [esp + 0x80], eax
lea eax, [ebx + 0x34]
mov dword [esp + 0x84], eax
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], 0
mov eax, dword [eax]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, 0xc
jl 0x415383
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x164]
pop edi
mov dword [esi], eax
pop esi
pop ebx
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 0xc