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

Disassembly:
sub esp, 0xc8
mov eax, dword [esp + 0xcc]
push ebx
push ebp
push esi
xor esi, esi
push edi
xor ebp, ebp
mov dword [esp + 0x38], esi
call fcn.00500400
mov edi, dword [0x16c3a78]
xor ecx, ecx
cmp edi, esi
jle 0x50ca3e
mov edx, dword [esp + 0xdc]
mov ebx, dword [edx]
add edx, 0x90
lea esp, [esp]
mov eax, 0x100
shl eax, cl
test ebx, eax
je 0x50ca33
mov eax, dword [edx]
mov dword [esp + ecx*4 + 0x6c], esi
mov dword [esp + ecx*4 + 0x4c], eax
lea esi, [esi + eax*4]
mov eax, dword [ecx*4 + 0x1877f60]
mov dword [esp + ecx*4 + 0x10], eax
inc ecx
add edx, 0xc8
cmp ecx, edi
jl 0x50ca10
mov ecx, dword [esp + 0xdc]
test dword [ecx], 0x10000
je 0x50ca5d
mov edx, ecx
mov ebp, esi
push edx
add esi, 4
call fcn.004ffa60
add esp, 4
mov eax, dword [esp + 0xdc]
test dword [eax], 0x20000
je 0x50ca73
mov dword [esp + 0x38], esi
add esi, 0xc
mov ecx, dword [0x197ff80]
mov edi, dword [0x197ffa8]
mov eax, dword [0x16d93ec]
lea ebx, [esi + ecx*4]
imul edi, ebx
test eax, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], ebx
mov esi, 0x17bff60
mov dword [esp + 0x30], 0
mov dword [esp + 0x98], edi
je 0x50cace
push eax
push 0x8892
call dword [0x16c4104]
mov eax, dword [0x16d93f4]
mov ecx, dword [0x16d93f0]
lea edx, [eax + edi]
cmp edx, ecx
jg 0x50cae5
mov dword [esp + 0x30], eax
jmp 0x50cae5
mov eax, dword [0x16d93f8]
inc eax
push eax
push 0x8892
mov dword [0x16d93f8], eax
call dword [0x16c4104]
mov ecx, dword [0x16c3a78]
xor eax, eax
test ecx, ecx
jle 0x50cb05
mov edx, dword [esp + eax*4 + 0x6c]
add edx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + eax*4 + 0xb4], edx
jl 0x50caf1
mov ecx, dword [esp + 0xdc]
push ebx
lea eax, [esp + 0xbc]
push eax
push ecx
call fcn.004feb30
mov edx, dword [esp + 0xe8]
mov eax, dword [edx]
add esp, 0xc
test eax, 0x10000
mov eax, dword [0x16c3954]
je 0x50cb64
test ah, 1
jne 0x50cb4d
push 0x8076
call dword [0x16c3c58]
or dword [0x16c3954], 0x100
mov eax, dword [esp + 0x30]
add eax, ebp
push eax
push ebx
push 0x1401
push 4
call dword [0x16c474c]
jmp 0x50cbad
test ah, 1
je 0x50cb7e
push 0x8076
call dword [0x16c3c7c]
and dword [0x16c3954], 0xfffffeff
mov ecx, dword [esp + 0xdc]
cmp dword [ecx + 0x664], 0xb
jne 0x50cb9a
mov edx, dword [0x16d8e5c]
add edx, 0x6c
push edx
jmp 0x50cba7
mov eax, dword [esp + 0xdc]
add eax, 0x680
push eax
call dword [0x16c41d0]
mov ecx, dword [esp + 0xdc]
test dword [ecx], 0x20000
mov eax, dword [0x16c3954]
je 0x50cbf4
test ah, 2
jne 0x50cbdb
push 0x8075
call dword [0x16c3c58]
or dword [0x16c3954], 0x200
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
add eax, edx
push eax
push ebx
push 0x1406
call dword [0x16c435c]
jmp 0x50cc0e
test ah, 2
je 0x50cc0e
push 0x8075
call dword [0x16c3c7c]
and dword [0x16c3954], 0xfffffdff
mov eax, dword [0x16c3954]
test ah, 4
jne 0x50cc2d
push 0x8074
call dword [0x16c3c58]
or dword [0x16c3954], 0x400
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov eax, dword [0x197ff80]
add ecx, edx
push ecx
push ebx
push 0x1406
push eax
call dword [0x16c4810]
mov eax, dword [0x16d93ec]
test eax, eax
jne 0x50cc7f
push 0x88e0
xor ebx, ebx
push ebx
push edi
push 0x8892
mov dword [esp + 0x54], ebx
call dword [0x16c45fc]
push 0x88b9
push 0x8892
call dword [0x16c4924]
test eax, eax
jne 0x50cc8f
push edi
call dword [0x16d8930]
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0xdc]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x4c]
mov edx, dword [0x197ff80]
and ecx, 0x3ff00
cmp ecx, 0x20100
jne 0x50cd43
cmp edi, 2
jne 0x50cd43
cmp edx, 3
jne 0x50cd43
mov ecx, dword [0x197ffa8]
xor edi, edi
test ecx, ecx
jle 0x50d372
mov edx, dword [esp + 0x10]
mov ecx, 0x1827f64
nop
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [ecx - 4]
add eax, 4
mov dword [eax + 4], ebp
mov ebp, dword [ecx]
add edx, 4
add eax, 4
mov dword [eax + 4], ebp
mov ebp, dword [ecx + 4]
add eax, 4
mov dword [eax + 4], ebp
mov ebp, dword [esi]
add eax, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [esi + 4]
add esi, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [esi + 4]
add esi, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [0x197ffa8]
add edx, 4
add eax, 4
add esi, 4
inc edi
add ecx, 0xc
cmp edi, ebp
jl 0x50cce0
jmp 0x50d372
cmp ecx, 0x10100
jne 0x50cdc3
cmp edi, 2
jne 0x50cdc3
cmp edx, 3
jne 0x50cdc3
mov ecx, dword [0x197ffa8]
xor edx, edx
test ecx, ecx
jle 0x50d372
mov ecx, dword [esp + 0x10]
lea esp, [esp]
mov edi, dword [ecx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov edi, dword [edx*4 + 0x186ff60]
add eax, 4
add ecx, 4
mov dword [eax + 4], edi
mov edi, dword [esi]
add eax, 4
add eax, 4
mov dword [eax], edi
mov edi, dword [esi + 4]
add esi, 4
add eax, 4
mov dword [eax], edi
mov edi, dword [esi + 4]
add esi, 4
add eax, 4
mov dword [eax], edi
mov edi, dword [0x197ffa8]
add ecx, 4
add eax, 4
add esi, 4
inc edx
cmp edx, edi
jl 0x50cd70
jmp 0x50d372
cmp ecx, 0x100
jne 0x50ce36
cmp edi, 2
jne 0x50ce36
cmp edx, 3
jne 0x50ce36
mov ecx, dword [0x197ffa8]
xor edx, edx
test ecx, ecx
jle 0x50d372
mov ecx, dword [esp + 0x10]
lea esp, [esp]
mov edi, dword [ecx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov edi, dword [esi]
add eax, 4
add ecx, 4
add eax, 4
mov dword [eax], edi
mov edi, dword [esi + 4]
add esi, 4
add eax, 4
mov dword [eax], edi
mov edi, dword [esi + 4]
add esi, 4
add eax, 4
mov dword [eax], edi
mov edi, dword [0x197ffa8]
add ecx, 4
add eax, 4
add esi, 4
inc edx
cmp edx, edi
jl 0x50cdf0
jmp 0x50d372
cmp ecx, 0x10300
jne 0x50cee0
cmp edi, 2
jne 0x50cee0
cmp dword [esp + 0x50], edi
jne 0x50cee0
cmp edx, 3
jne 0x50cee0
mov ecx, dword [0x197ffa8]
xor edi, edi
test ecx, ecx
jle 0x50d372
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [edx]
add eax, 4
mov dword [eax + 4], ebp
mov ebp, dword [edx + 4]
add ecx, 4
add eax, 4
mov dword [eax + 4], ebp
mov ebp, dword [edi*4 + 0x186ff60]
add eax, 4
add edx, 4
mov dword [eax + 4], ebp
mov ebp, dword [esi]
add eax, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [esi + 4]
add esi, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [esi + 4]
add esi, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [0x197ffa8]
add ecx, 4
add edx, 4
add eax, 4
add esi, 4
inc edi
cmp edi, ebp
jl 0x50ce76
jmp 0x50d372
mov ecx, dword [0x197ffa8]
test ecx, ecx
mov dword [esp + 0x3c], 0
jle 0x50d372
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
sub edi, ecx
mov dword [esp + 0xb0], edi
mov edi, dword [esp + 0x74]
sub edi, ecx
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0x78]
sub edi, ecx
mov dword [esp + 0xa8], edi
mov edi, dword [esp + 0x7c]
sub edi, ecx
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x80]
sub edi, ecx
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0x84]
sub edi, ecx
mov dword [esp + 0xb4], edi
mov edi, dword [esp + 0x88]
sub edi, ecx
mov dword [esp + 0x9c], edi
mov edi, dword [esp + 0x38]
sub edi, ecx
mov dword [esp + 0xa4], edi
mov edi, dword [esp + 0x40]
sub ebp, ecx
sub edi, ecx
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x2c]
lea edx, [ecx + eax]
mov dword [esp + 0x34], 0x1827f64
mov dword [esp + 0xac], ebp
mov ebx, dword [esp + 0xdc]
test byte [ebx + 1], 1
mov ebp, dword [esp + 0x14]
je 0x50cffe
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xb0]
mov dword [edx + ebp], ebx
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x6c]
mov dword [ebx + eax + 4], ebp
add dword [esp + 0x10], 4
cmp dword [esp + 0x4c], 3
jl 0x50cffa
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [ebx + eax + 8], ebp
add dword [esp + 0x10], 4
cmp dword [esp + 0x4c], 4
jne 0x50cffa
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [ebx + eax + 0xc], ebp
add dword [esp + 0x10], 4
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0xdc]
test byte [ebx + 1], 2
je 0x50d04f
mov ebx, dword [ebp]
add ebp, 4
mov dword [edx], ebx
mov ebx, dword [ebp]
mov dword [ecx + eax + 4], ebx
mov ebx, dword [esp + 0x50]
add ebp, 4
cmp ebx, 3
mov dword [esp + 0x14], ebp
jl 0x50d04f
mov ebx, dword [ebp]
mov dword [ecx + eax + 8], ebx
mov ebx, dword [esp + 0x50]
add ebp, 4
cmp ebx, 4
mov dword [esp + 0x14], ebp
jne 0x50d04f
mov ebx, dword [ebp]
add ebp, 4
mov dword [ecx + eax + 0xc], ebx
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0xdc]
test dword [ebx], 0x400
je 0x50d0b7
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xa0]
mov dword [edx + ebp], ebx
mov ebx, dword [esp + 0x18]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x74]
mov dword [ebx + eax + 4], ebp
add dword [esp + 0x18], 4
cmp dword [esp + 0x54], 3
jl 0x50d0b7
mov ebp, dword [esp + 0x18]
mov ebp, dword [ebp]
mov dword [ebx + eax + 8], ebp
add dword [esp + 0x18], 4
cmp dword [esp + 0x54], 4
jne 0x50d0b7
mov ebp, dword [esp + 0x18]
mov ebp, dword [ebp]
mov dword [ebx + eax + 0xc], ebp
add dword [esp + 0x18], 4
mov ebx, dword [esp + 0xdc]
test dword [ebx], 0x800
je 0x50d11f
mov ebx, dword [esp + 0x1c]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xa8]
mov dword [edx + ebp], ebx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x78]
mov dword [ebx + eax + 4], ebp
add dword [esp + 0x1c], 4
cmp dword [esp + 0x58], 3
jl 0x50d11f
mov ebp, dword [esp + 0x1c]
mov ebp, dword [ebp]
mov dword [ebx + eax + 8], ebp
add dword [esp + 0x1c], 4
cmp dword [esp + 0x58], 4
jne 0x50d11f
mov ebp, dword [esp + 0x1c]
mov ebp, dword [ebp]
mov dword [ebx + eax + 0xc], ebp
add dword [esp + 0x1c], 4
mov ebx, dword [esp + 0xdc]
test dword [ebx], 0x1000
je 0x50d187
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x8c]
mov dword [edx + ebp], ebx
mov ebx, dword [esp + 0x20]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x7c]
mov dword [ebx + eax + 4], ebp
add dword [esp + 0x20], 4
cmp dword [esp + 0x5c], 3
jl 0x50d187
mov ebp, dword [esp + 0x20]
mov ebp, dword [ebp]
mov dword [ebx + eax + 8], ebp
add dword [esp + 0x20], 4
cmp dword [esp + 0x5c], 4
jne 0x50d187
mov ebp, dword [esp + 0x20]
mov ebp, dword [ebp]
mov dword [ebx + eax + 0xc], ebp
add dword [esp + 0x20], 4
mov ebx, dword [esp + 0xdc]
test dword [ebx], 0x2000
je 0x50d1f2
mov ebx, dword [esp + 0x24]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x94]
mov dword [edx + ebp], ebx
mov ebx, dword [esp + 0x24]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x80]
mov dword [ebx + eax + 4], ebp
add dword [esp + 0x24], 4
cmp dword [esp + 0x60], 3
jl 0x50d1f2
mov ebp, dword [esp + 0x24]
mov ebp, dword [ebp]
mov dword [ebx + eax + 8], ebp
add dword [esp + 0x24], 4
cmp dword [esp + 0x60], 4
jne 0x50d1f2
mov ebp, dword [esp + 0x24]
mov ebp, dword [ebp]
mov dword [ebx + eax + 0xc], ebp
add dword [esp + 0x24], 4
mov ebx, dword [esp + 0xdc]
test dword [ebx], 0x4000
je 0x50d25d
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xb4]
mov dword [edx + ebp], ebx
mov ebx, dword [esp + 0x28]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x84]
mov dword [ebx + eax + 4], ebp
add dword [esp + 0x28], 4
cmp dword [esp + 0x64], 3
jl 0x50d25d
mov ebp, dword [esp + 0x28]
mov ebp, dword [ebp]
mov dword [ebx + eax + 8], ebp
add dword [esp + 0x28], 4
cmp dword [esp + 0x64], 4
jne 0x50d25d
mov ebp, dword [esp + 0x28]
mov ebp, dword [ebp]
mov dword [ebx + eax + 0xc], ebp
add dword [esp + 0x28], 4
mov ebx, dword [esp + 0xdc]
test dword [ebx], 0x8000
je 0x50d2b0
mov ebx, dword [edi]
mov ebp, dword [esp + 0x9c]
mov dword [edx + ebp], ebx
mov ebp, dword [edi + 4]
mov ebx, dword [esp + 0x88]
add edi, 4
mov dword [ebx + eax + 4], ebp
mov ebp, dword [esp + 0x68]
add edi, 4
cmp ebp, 3
jl 0x50d2b0
mov ebp, dword [edi]
mov dword [ebx + eax + 8], ebp
mov ebp, dword [esp + 0x68]
add edi, 4
cmp ebp, 4
jne 0x50d2b0
mov ebp, dword [edi]
mov dword [ebx + eax + 0xc], ebp
add edi, 4
mov ebx, dword [esp + 0xdc]
test dword [ebx], 0x10000
je 0x50d2d4
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx*4 + 0x186ff60]
mov ebp, dword [esp + 0xac]
mov dword [edx + ebp], ebx
mov ebx, dword [esp + 0xdc]
test dword [ebx], 0x20000
je 0x50d30d
mov ebx, dword [esp + 0x34]
mov ebx, dword [ebx - 4]
mov ebp, dword [esp + 0xa4]
mov dword [edx + ebp], ebx
mov ebx, dword [esp + 0x34]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x38]
mov dword [eax + ebx + 4], ebp
mov ebp, dword [esp + 0x34]
mov ebp, dword [ebp + 4]
mov dword [eax + ebx + 8], ebp
mov ebx, dword [esi]
mov ebp, dword [esp + 0x90]
add esi, 4
mov dword [edx + ebp], ebx
mov ebp, dword [esi]
mov ebx, dword [esp + 0x40]
add esi, 4
mov dword [ebx + eax + 4], ebp
mov ebp, dword [esi]
mov dword [ebx + eax + 8], ebp
mov ebp, dword [0x197ff80]
add esi, 4
cmp ebp, 4
jne 0x50d346
mov ebp, dword [esi]
mov dword [eax + ebx + 0xc], ebp
add esi, 4
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
add eax, ebx
add edx, ebx
mov ebx, dword [esp + 0x34]
add ebx, 0xc
inc ebp
mov dword [esp + 0x34], ebx
cmp ebp, dword [0x197ffa8]
mov dword [esp + 0x3c], ebp
jl 0x50cf90
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0xdc]
mov eax, dword [edx + 0x684]
call fcn.004d57b0
mov eax, dword [0x16d93ec]
test eax, eax
je 0x50d3b4
mov edi, dword [esp + 0x98]
mov esi, dword [esp + 0x30]
push ebx
push edi
push esi
push 0x8892
call dword [0x16c3e34]
lea eax, [edi + esi + 0x1f]
and eax, 0xffffffe0
mov dword [0x16d93f4], eax
jmp 0x50d3e6
test ebx, ebx
jne 0x50d3c9
push 0x8892
call dword [0x16c45e8]
test al, al
je 0x50d428
jmp 0x50d3f0
mov edx, dword [0x197ffa8]
imul edx, dword [esp + 0x48]
push 0x88e0
push ebx
push edx
push 0x8892
call dword [0x16c45fc]
push ebx
call dword [0x16d893c]
add esp, 4
mov ecx, dword [esp + 0xe4]
mov ebx, dword [0x16d8e34]
mov eax, dword [esp + 0xe0]
mov edi, dword [0x16d8e38]
push ecx
push 0x1403
add ebx, eax
push eax
inc edi
push 4
mov dword [0x16d8e38], edi
mov dword [0x16d8e34], ebx
call dword [0x16c445c]
push 0
push 0x8892
call dword [0x16c4104]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret