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

Disassembly:
push 0xffffffffffffffff
push 0x53b3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x598c90]
xor eax, esp
mov dword [esp + 0x64], eax
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 ebp, dword [esp + 0x8c]
mov eax, 0x61
xor ecx, ecx
lea edx, [esp + 0x12]
mov word [esp + 0x10], ax
push edx
mov word [esp + 0x16], cx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x28], ebp
call fcn.0050a130
lea eax, [esp + 0x10]
mov dword [esp + 0x80], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50a6b0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
push eax
push 0
lea ecx, [esp + 0x30]
call fcn.00505c70
xor ecx, ecx
test eax, eax
jne 0x50a6fa
cmp dword [esp + 0x38], 8
mov word [ebp], cx
jb 0x50a6f3
mov edx, dword [esp + 0x24]
push edx
call fcn.0051e446
add esp, 4
xor eax, eax
jmp 0x50a991
mov eax, 0x41
lea edx, [esp + 0x16]
mov word [esp + 0x14], ax
push edx
mov word [esp + 0x1a], cx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.0050a130
mov edx, 0x3b
xor eax, eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], dx
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
mov byte [esp + 0x8c], 1
call fcn.0050a130
mov ecx, dword [esp + 0x34]
xor esi, esi
mov byte [esp + 0x80], 2
test ecx, ecx
jl 0x50a7af
cmp esi, dword [esp + 0x50]
jg 0x50a7af
cmp esi, ecx
jbe 0x50a773
call fcn.0051e9d3
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x38], 8
mov edi, dword [esp + 0x24]
jae 0x50a782
lea edi, [esp + 0x24]
cmp esi, dword [esp + 0x50]
jbe 0x50a791
call fcn.0051e9d3
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x50a7a0
lea eax, [esp + 0x40]
mov dx, word [edi + esi*2]
cmp dx, word [eax + esi*2]
jne 0x50a7af
inc esi
cmp esi, ecx
jle 0x50a760
sub esi, 1
jns 0x50a81c
xor eax, eax
cmp dword [esp + 0x70], 8
mov word [ebp], ax
jb 0x50a7ce
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0051e446
add esp, 4
xor edi, edi
xor edx, edx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], dx
jb 0x50a7f8
mov eax, dword [esp + 0x40]
push eax
call fcn.0051e446
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov word [esp + 0x40], cx
jb 0x50a98c
mov edx, dword [esp + 0x24]
push edx
jmp 0x50a984
cmp esi, ecx
jbe 0x50a829
call fcn.0051e9d3
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x50a838
lea eax, [esp + 0x24]
movzx edi, word [eax + esi*2]
test esi, esi
je 0x50a8d1
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.00507ca0
lea ecx, [esp + 0x28]
push edi
push ecx
mov ebp, eax
call fcn.00507ca0
add esp, 0x10
cmp eax, ebp
jne 0x50a8c9
lea edx, [esp + 0x58]
push edi
push edx
call fcn.00507ca0
mov ebp, eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00507ca0
add esp, 0x10
cmp eax, ebp
jne 0x50a8c9
mov ecx, dword [esp + 0x1c]
mov word [ecx], di
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 1
call fcn.00401f00
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00401f00
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], 0xffffffff
call fcn.00401f00
mov eax, 2
jmp 0x50a991
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x50]
jne 0x50a91f
cmp ecx, dword [esp + 0x6c]
jne 0x50a91f
inc esi
lea ecx, [esp + 0x58]
mov word [ebp], si
mov byte [esp + 0x80], 1
call fcn.00401f00
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00401f00
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], 0xffffffff
call fcn.00401f00
mov eax, 1
jmp 0x50a991
xor edx, edx
cmp dword [esp + 0x70], 8
mov word [ebp], dx
jb 0x50a939
mov eax, dword [esp + 0x5c]
push eax
call fcn.0051e446
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], cx
jb 0x50a965
mov edx, dword [esp + 0x40]
push edx
call fcn.0051e446
add esp, 4
xor eax, eax
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x50a98c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0051e446
add esp, 4
mov eax, 3
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0051e437
add esp, 0x74
ret