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

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
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 0x50bdce
mov edx, dword [esp + 0xd4]
mov ebx, dword [edx]
add edx, 0x90
lea esp, [esp]
mov eax, 0x100
shl eax, cl
test ebx, eax
je 0x50bdc3
mov eax, dword [edx]
mov dword [esp + ecx*4 + 0x64], esi
mov dword [esp + ecx*4 + 0x44], eax
lea esi, [esi + eax*4]
mov eax, dword [ecx*4 + 0x1877f60]
mov dword [esp + ecx*4 + 0x14], eax
inc ecx
add edx, 0xc8
cmp ecx, edi
jl 0x50bda0
mov ecx, dword [esp + 0xd4]
test dword [ecx], 0x10000
je 0x50bded
mov edx, ecx
mov ebp, esi
push edx
add esi, 4
call fcn.004ffa60
add esp, 4
mov eax, dword [esp + 0xd4]
test dword [eax], 0x20000
je 0x50be03
mov dword [esp + 0x38], esi
add esi, 0xc
mov ecx, dword [0x197ff80]
mov eax, dword [0x197ffa8]
lea ebx, [esi + ecx*4]
imul eax, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x90], ebx
mov edi, 0x17bff60
call fcn.0050bc40
mov ecx, dword [0x16c3a78]
mov esi, eax
xor eax, eax
test ecx, ecx
jle 0x50be52
jmp 0x50be40
mov edx, dword [esp + eax*4 + 0x64]
add edx, esi
mov dword [esp + eax*4 + 0xb0], edx
inc eax
cmp eax, ecx
jl 0x50be40
mov ecx, dword [esp + 0xd4]
push ebx
lea eax, [esp + 0xb4]
push eax
push ecx
call fcn.004feb30
mov edx, dword [esp + 0xe0]
mov eax, dword [edx]
add esp, 0xc
test eax, 0x10000
mov eax, dword [0x16c3954]
je 0x50beae
test ah, 1
jne 0x50be9a
push 0x8076
call dword [0x16c3c58]
or dword [0x16c3954], 0x100
lea eax, [esi + ebp]
push eax
push ebx
push 0x1401
push 4
call dword [0x16c474c]
jmp 0x50bef7
test ah, 1
je 0x50bec8
push 0x8076
call dword [0x16c3c7c]
and dword [0x16c3954], 0xfffffeff
mov ecx, dword [esp + 0xd4]
cmp dword [ecx + 0x664], 0xb
jne 0x50bee4
mov edx, dword [0x16d8e5c]
add edx, 0x6c
push edx
jmp 0x50bef1
mov eax, dword [esp + 0xd4]
add eax, 0x680
push eax
call dword [0x16c41d0]
mov ecx, dword [esp + 0xd4]
test dword [ecx], 0x20000
mov eax, dword [0x16c3954]
je 0x50bf3b
test ah, 2
jne 0x50bf25
push 0x8075
call dword [0x16c3c58]
or dword [0x16c3954], 0x200
mov edx, dword [esp + 0x38]
lea eax, [esi + edx]
push eax
push ebx
push 0x1406
call dword [0x16c435c]
jmp 0x50bf55
test ah, 2
je 0x50bf55
push 0x8075
call dword [0x16c3c7c]
and dword [0x16c3954], 0xfffffdff
mov eax, dword [0x16c3954]
test ah, 4
jne 0x50bf74
push 0x8074
call dword [0x16c3c58]
or dword [0x16c3954], 0x400
mov ecx, dword [esp + 0x40]
mov eax, dword [0x197ff80]
lea edx, [esi + ecx]
push edx
push ebx
push 0x1406
push eax
call dword [0x16c4810]
mov ecx, dword [esp + 0xd4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x44]
mov ecx, dword [0x197ff80]
and eax, 0x3ff00
cmp eax, 0x20100
jne 0x50c03a
cmp edx, 2
jne 0x50c03a
cmp ecx, 3
jne 0x50c03a
mov eax, dword [0x197ffa8]
xor edx, edx
test eax, eax
jle 0x50c64e
mov ecx, dword [esp + 0x14]
mov eax, 0x1827f64
mov ebx, dword [ecx]
mov dword [esi], ebx
mov ebx, dword [ecx + 4]
mov dword [esi + 4], ebx
mov ebx, dword [eax - 4]
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [eax]
add ecx, 4
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [eax + 4]
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [edi]
add esi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [0x197ffa8]
add ecx, 4
add esi, 4
add edi, 4
inc edx
add eax, 0xc
cmp edx, ebx
jl 0x50bfd7
jmp 0x50c64e
cmp eax, 0x10100
jne 0x50c0b3
cmp edx, 2
jne 0x50c0b3
cmp ecx, 3
jne 0x50c0b3
mov eax, dword [0x197ffa8]
xor ecx, ecx
test eax, eax
jle 0x50c64e
mov eax, dword [esp + 0x14]
mov edi, edi
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [ecx*4 + 0x186ff60]
add esi, 4
add eax, 4
mov dword [esi + 4], edx
mov edx, dword [edi]
add esi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [0x197ffa8]
add eax, 4
add esi, 4
add edi, 4
inc ecx
cmp ecx, edx
jl 0x50c060
jmp 0x50c64e
cmp eax, 0x100
jne 0x50c11d
cmp edx, 2
jne 0x50c11d
cmp ecx, 3
jne 0x50c11d
mov eax, dword [0x197ffa8]
xor ecx, ecx
test eax, eax
jle 0x50c64e
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [edi]
add esi, 4
add eax, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [0x197ffa8]
add eax, 4
add esi, 4
add edi, 4
inc ecx
cmp ecx, edx
jl 0x50c0d7
jmp 0x50c64e
cmp eax, 0x10300
jne 0x50c1ca
cmp edx, 2
jne 0x50c1ca
cmp dword [esp + 0x48], edx
jne 0x50c1ca
cmp ecx, 3
jne 0x50c1ca
mov eax, dword [0x197ffa8]
xor edx, edx
test eax, eax
jle 0x50c64e
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x50c160
mov ebx, dword [eax]
mov dword [esi], ebx
mov ebx, dword [eax + 4]
mov dword [esi + 4], ebx
mov ebx, dword [ecx]
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [ecx + 4]
add eax, 4
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [edx*4 + 0x186ff60]
add esi, 4
add ecx, 4
mov dword [esi + 4], ebx
mov ebx, dword [edi]
add esi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [0x197ffa8]
add eax, 4
add ecx, 4
add esi, 4
add edi, 4
inc edx
cmp edx, ebx
jl 0x50c160
jmp 0x50c64e
mov eax, dword [0x197ffa8]
test eax, eax
mov dword [esp + 0x3c], 0
jle 0x50c64e
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
sub edx, eax
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x6c]
sub edx, eax
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x70]
sub edx, eax
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x74]
sub edx, eax
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x78]
sub edx, eax
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x7c]
sub edx, eax
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x80]
sub edx, eax
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x38]
sub edx, eax
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x40]
sub ebp, eax
sub edx, eax
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x30]
lea ecx, [eax + esi]
mov dword [esp + 0x34], 0x1827f64
mov dword [esp + 0xa4], ebp
mov ebx, dword [esp + 0xd4]
test byte [ebx + 1], 1
mov ebp, dword [esp + 0x18]
je 0x50c2e1
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xac]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x14]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x64]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x14], 4
cmp dword [esp + 0x44], 3
jl 0x50c2dd
mov ebp, dword [esp + 0x14]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x14], 4
cmp dword [esp + 0x44], 4
jne 0x50c2dd
mov ebp, dword [esp + 0x14]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x14], 4
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0xd4]
test byte [ebx + 1], 2
je 0x50c332
mov ebx, dword [ebp]
add ebp, 4
mov dword [ecx], ebx
mov ebx, dword [ebp]
mov dword [eax + esi + 4], ebx
mov ebx, dword [esp + 0x48]
add ebp, 4
cmp ebx, 3
mov dword [esp + 0x18], ebp
jl 0x50c332
mov ebx, dword [ebp]
mov dword [eax + esi + 8], ebx
mov ebx, dword [esp + 0x48]
add ebp, 4
cmp ebx, 4
mov dword [esp + 0x18], ebp
jne 0x50c332
mov ebx, dword [ebp]
add ebp, 4
mov dword [eax + esi + 0xc], ebx
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x400
je 0x50c39a
mov ebx, dword [esp + 0x1c]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x98]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x6c]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x1c], 4
cmp dword [esp + 0x4c], 3
jl 0x50c39a
mov ebp, dword [esp + 0x1c]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x1c], 4
cmp dword [esp + 0x4c], 4
jne 0x50c39a
mov ebp, dword [esp + 0x1c]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x1c], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x800
je 0x50c402
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xa0]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x20]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x70]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x20], 4
cmp dword [esp + 0x50], 3
jl 0x50c402
mov ebp, dword [esp + 0x20]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x20], 4
cmp dword [esp + 0x50], 4
jne 0x50c402
mov ebp, dword [esp + 0x20]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x20], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x1000
je 0x50c46a
mov ebx, dword [esp + 0x24]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xa8]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x24]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x74]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x24], 4
cmp dword [esp + 0x54], 3
jl 0x50c46a
mov ebp, dword [esp + 0x24]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x24], 4
cmp dword [esp + 0x54], 4
jne 0x50c46a
mov ebp, dword [esp + 0x24]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x24], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x2000
je 0x50c4d2
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x8c]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x28]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x78]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x28], 4
cmp dword [esp + 0x58], 3
jl 0x50c4d2
mov ebp, dword [esp + 0x28]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x28], 4
cmp dword [esp + 0x58], 4
jne 0x50c4d2
mov ebp, dword [esp + 0x28]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x28], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x4000
je 0x50c53a
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x84]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x7c]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x2c], 4
cmp dword [esp + 0x5c], 3
jl 0x50c53a
mov ebp, dword [esp + 0x2c]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x2c], 4
cmp dword [esp + 0x5c], 4
jne 0x50c53a
mov ebp, dword [esp + 0x2c]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x2c], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x8000
je 0x50c58d
mov ebx, dword [edx]
mov ebp, dword [esp + 0x94]
mov dword [ecx + ebp], ebx
mov ebp, dword [edx + 4]
mov ebx, dword [esp + 0x80]
add edx, 4
mov dword [ebx + esi + 4], ebp
mov ebp, dword [esp + 0x60]
add edx, 4
cmp ebp, 3
jl 0x50c58d
mov ebp, dword [edx]
mov dword [ebx + esi + 8], ebp
mov ebp, dword [esp + 0x60]
add edx, 4
cmp ebp, 4
jne 0x50c58d
mov ebp, dword [edx]
mov dword [ebx + esi + 0xc], ebp
add edx, 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x10000
je 0x50c5b1
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx*4 + 0x186ff60]
mov ebp, dword [esp + 0xa4]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x20000
je 0x50c5ea
mov ebx, dword [esp + 0x34]
mov ebx, dword [ebx - 4]
mov ebp, dword [esp + 0x9c]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x34]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x38]
mov dword [esi + ebx + 4], ebp
mov ebp, dword [esp + 0x34]
mov ebp, dword [ebp + 4]
mov dword [esi + ebx + 8], ebp
mov ebx, dword [edi]
mov ebp, dword [esp + 0x88]
add edi, 4
mov dword [ecx + ebp], ebx
mov ebp, dword [edi]
mov ebx, dword [esp + 0x40]
add edi, 4
mov dword [ebx + esi + 4], ebp
mov ebp, dword [edi]
mov dword [ebx + esi + 8], ebp
mov ebp, dword [0x197ff80]
add edi, 4
cmp ebp, 4
jne 0x50c623
mov ebp, dword [edi]
mov dword [esi + ebx + 0xc], ebp
add edi, 4
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x34]
add esi, ebx
add ecx, ebx
mov ebx, dword [esp + 0x3c]
add ebp, 0xc
inc ebx
mov dword [esp + 0x34], ebp
cmp ebx, dword [0x197ffa8]
mov dword [esp + 0x3c], ebx
jl 0x50c273
mov ecx, esi
and ecx, 0x1f
je 0x50c66c
mov eax, 0x20
sub eax, ecx
sar eax, 2
nop
mov dword [esi], 0
add esi, 4
dec eax
jne 0x50c660
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + 0x684]
call fcn.004d57b0
mov eax, dword [esp + 0xd8]
mov ecx, dword [0x16d8e34]
mov ebp, dword [0x16d8e38]
add ecx, eax
mov dword [0x16d8e34], ecx
mov ecx, dword [esp + 0xdc]
push ecx
push 0x1403
push eax
inc ebp
push 4
mov dword [0x16d8e38], ebp
call dword [0x16c445c]
mov edx, dword [0x16d9400]
push 0x84f2
push edx
call dword [0x16c3e70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret