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

Disassembly:
push 0xffffffffffffffff
push 0x53b869
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
xor edi, edi
mov dword [esp + 0x18], edi
mov ebx, ecx
mov ecx, dword [esp + 0x90]
lea ebp, [esi + 4]
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], esi
mov word [ebp], dx
mov edx, dword [ebx + 0x84]
mov dword [esp + 0x80], edi
mov dword [esp + 0x18], 1
cmp edx, 3
ja case.default.0x50ec6d
jmp dword [edx*4 + 0x50ef04]
push ecx
push eax
mov ecx, esi
call fcn.0050c970
cmp dword [esi + 0x14], 0
jbe 0x50eccd
cmp edi, dword [esi + 0x14]
jbe 0x50ec8d
call fcn.0051e9d3
cmp dword [esi + 0x18], 8
jb 0x50ec98
mov eax, dword [ebp]
jmp 0x50ec9a
mov eax, ebp
movzx ecx, word [eax + edi*2]
mov edx, dword [ebx]
call fcn.0051d920
movzx ebx, ax
cmp edi, dword [esi + 0x14]
jbe 0x50ecb2
call fcn.0051e9d3
cmp dword [esi + 0x18], 8
jb 0x50ecbd
mov eax, dword [ebp]
jmp 0x50ecbf
mov eax, ebp
mov word [eax + edi*2], bx
mov ebx, dword [esp + 0x14]
inc edi
cmp edi, dword [esi + 0x14]
jb 0x50ec8d
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x50ecde
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jmp 0x50ece4
mov dword [esp + 0x14], ebp
mov edi, ebp
test edi, edi
je 0x50ed0e
cmp ecx, 8
jb 0x50ecf2
mov eax, dword [ebp]
jmp 0x50ecf4
mov eax, ebp
cmp eax, edi
ja 0x50ed0e
cmp ecx, 8
jb 0x50ed02
mov eax, dword [ebp]
jmp 0x50ed04
mov eax, ebp
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp edi, edx
jbe 0x50ed13
call fcn.0051e9d3
cmp esi, 0xfffffffc
je 0x50ed34
cmp dword [esi + 0x18], 8
jb 0x50ed23
mov eax, dword [ebp]
jmp 0x50ed25
mov eax, ebp
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp edi, edx
jb 0x50ed34
call fcn.0051e9d3
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x1c], edx
cmp ecx, 8
jb 0x50ed48
mov edi, dword [ebp]
jmp 0x50ed4a
mov edi, ebp
test edi, edi
je 0x50ed71
cmp ecx, 8
jb 0x50ed58
mov eax, dword [ebp]
jmp 0x50ed5a
mov eax, ebp
cmp eax, edi
ja 0x50ed71
cmp ecx, 8
jb 0x50ed68
mov eax, dword [ebp]
jmp 0x50ed6a
mov eax, ebp
lea eax, [eax + edx*2]
cmp edi, eax
jbe 0x50ed76
call fcn.0051e9d3
cmp esi, 0xfffffffc
je 0x50ed94
cmp dword [esi + 0x18], 8
jb 0x50ed84
mov ebp, dword [ebp]
mov ecx, dword [esi + 0x14]
lea edx, [ebp + ecx*2]
cmp edi, edx
jb 0x50ed94
call fcn.0051e9d3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx*2]
push edx
push edi
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0050a130
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [esp + 0x8c], 1
call fcn.00402570
cmp dword [esp + 0x38], 8
mov byte [esp + 0x80], 0
jb case.default.0x50ec6d
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0051e446
add esp, 4
jmp case.default.0x50ec6d
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov ecx, ebx
call fcn.0050a130
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
mov dword [esp + 0x8c], 2
call fcn.00402570
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 0
call fcn.00401f00
movzx eax, word [ebx + 0x88]
push 0xffffffffffffffff
push eax
jmp 0x50ee92
push ecx
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
call fcn.0050a130
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
mov dword [esp + 0x8c], 3
call fcn.00402570
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 0
call fcn.00401f00
cmp dword [esi + 0x14], 0
jbe 0x50ee8f
cmp edi, dword [esi + 0x14]
jbe 0x50ee6f
call fcn.0051e9d3
cmp dword [esi + 0x18], 8
jb 0x50ee7a
mov eax, dword [ebp]
jmp 0x50ee7c
mov eax, ebp
mov dx, word [eax + edi*2]
cmp dx, word [ebx + 0x88]
je 0x50ee8f
inc edi
cmp edi, dword [esi + 0x14]
jb 0x50ee6f
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.00402740
cmp dword [esi + 0x14], 0
jne 0x50eeeb
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov dword [esp + 0x34], 1
mov word [esp + 0x26], cx
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
mov dword [esp + 0x8c], 4
call fcn.00402570
cmp dword [esp + 0x38], 8
jb 0x50eeeb
mov eax, dword [esp + 0x24]
push eax
call fcn.0051e446
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0xc