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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, edx
mov edx, dword [ecx]
push ebp
push esi
push edi
mov esi, dword [edx + 8]
mov edi, dword [ecx + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
test esi, esi
jne 0x50e9a1
cmp dword [edx + 0x74], esi
jne 0x50e994
mov eax, dword [edx]
test byte [eax + 0x50], 8
jne 0x50e994
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.00495c60
mov esi, eax
mov dword [esp + 0x18], eax
test edi, edi
je 0x50ecaa
lea eax, [edi + 0x58]
mov dword [esp + 0x1c], eax
cmp dword [eax], 0
jne 0x50eaef
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x1000
je 0x50eaef
cmp byte [edi + 0x11], 0x5a
je 0x50eaef
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
cmp dword [esi + 0x78], ecx
jg 0x50e9f4
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, esi
call fcn.00495eb0
add esp, 0xc
jmp 0x50ea23
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x50ea44
push 0
push 0
push edx
mov edx, 0x22
mov ecx, esi
call fcn.00495eb0
add esp, 0xc
jmp 0x50ea73
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x22
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
mov ebx, dword [edi + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x50ea96
push edx
push 0
push ebx
mov edx, 0x5d
mov ecx, esi
call fcn.00495eb0
add esp, 0xc
jmp 0x50eabb
lea eax, [ecx + 1]
xor ebp, ebp
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebp
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
lea ecx, [edx - 2]
je 0x50ead5
mov eax, 0x5d1b78
mov dword [eax], edx
jmp 0x50ec97
sar ecx, 0x1f
mov eax, edx
sub eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
add eax, 0xffffffe0
mov dword [eax], edx
jmp 0x50ec97
cmp dword [edi + 0x40], 0
jne 0x50ec9b
mov eax, dword [edi + 0x48]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x50eb07
mov edx, dword [edx]
jmp 0x50eb09
xor edx, edx
mov ecx, dword [esi + 0x74]
test ebx, ebx
je 0x50ec20
mov ebx, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x50eb31
push 0
push edx
push ebx
mov edx, 0xa4
mov ecx, esi
call fcn.00495eb0
add esp, 0xc
jmp 0x50eb56
lea eax, [ecx + 1]
xor ebp, ebp
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xa4
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], ebp
mov ecx, dword [esi]
mov edx, dword [edi + 0x2c]
cmp byte [ecx + 0x57], 0
je 0x50eb71
push edx
mov edx, 0xfffffff8
call fcn.004969c0
add esp, 4
jmp 0x50eb83
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
mov ebx, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x50eba6
push 0
push edx
push ebx
mov edx, 0x4f
mov ecx, esi
call fcn.00495eb0
add esp, 0xc
jmp 0x50ebcb
lea eax, [ecx + 1]
xor ebp, ebp
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], ebp
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x50ebef
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, esi
call fcn.00495eb0
add esp, 0xc
jmp 0x50ec97
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50ec97
mov ebx, dword [edi + 0x38]
mov ebp, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x50ec3f
push ebx
push edx
push ebp
mov edx, 0xa3
mov ecx, esi
call fcn.00495eb0
add esp, 0xc
jmp 0x50ec6a
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xa3
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
mov edx, dword [edi + 0x2c]
cmp byte [ecx + 0x57], 0
je 0x50ec85
push edx
mov edx, 0xfffffff8
call fcn.004969c0
add esp, 4
jmp 0x50ec97
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov ebx, dword [esp + 0x14]
mov edi, dword [edi + 0x24]
mov eax, dword [esp + 0x1c]
test edi, edi
jne 0x50e9b0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret