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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x5da084]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [edx]
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [eax + 0x24]
mov edi, dword [edx + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 0x6c], ecx
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x5c], eax
test edi, edi
jne 0x50e9de
push edi
push 1
push edi
mov edx, 0x5bc114
jmp 0x50f102
xorps xmm0, xmm0
mov dword [esp + 0x3c], eax
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], eax
mov eax, dword [edi]
mov dword [esp + 0x28], eax
cmp eax, 5
je 0x50ea5c
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x38]
push eax
push 0x50be10
lea edx, [esp + 0x2c]
call fcn.0050bdb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x50ef79
cmp dword [esp + 0x28], 2
je 0x50ea4e
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x38]
push eax
push 0x50be10
lea edx, [esp + 0x2c]
call fcn.0050bdb0
add esp, 8
mov esi, eax
test esi, esi
jne 0x50ef79
mov eax, dword [esp + 0x40]
jmp 0x50ea6c
mov eax, dword [edi + 0x14]
xor esi, esi
mov dword [esp + 0x3c], 1
mov eax, dword [eax + 0x40]
lea edi, [eax + eax*2]
mov dword [esp + 0x68], eax
shl edi, 3
mov dword [esp + 0x28], edi
call fcn.004e4f50
test eax, eax
jne 0x50ef74
push eax
push edi
call fcn.0043b050
mov edi, eax
add esp, 8
test edi, edi
je 0x50ef6d
push dword [esp + 0x28]
push 0
push edi
call fcn.00570cd0
mov dword [esp + 0x94], edi
xor edx, edx
mov edi, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x24], edx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x84], ecx
mov ecx, edi
mov dword [esp + 0x70], ecx
cmp dword [eax + 0x18], edx
jle 0x50ef79
mov edi, dword [edi + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
mov eax, dword [edi]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
cmp eax, 5
je 0x50eb72
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x70]
push eax
push 0x50e890
lea edx, [esp + 0x10]
call fcn.0050bdb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x50ef79
cmp dword [esp + 0x14], 2
je 0x50ec3c
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x70]
push eax
push 0x50e890
lea edx, [esp + 0x10]
call fcn.0050bdb0
add esp, 8
mov esi, eax
jmp 0x50ec3c
lea eax, [esp + 0x64]
xorps xmm0, xmm0
push eax
push edx
mov edx, edi
movlpd qword [esp + 0x40], xmm0
call fcn.004f4960
mov esi, eax
add esp, 8
mov eax, dword [edi + 0x14]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x30], esi
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x10], ecx
test edi, edi
je 0x50ebea
mov al, byte [edi]
test al, al
jns 0x50ebce
lea edx, [esp + 0x60]
mov ecx, edi
call fcn.004ea670
mov ecx, dword [esp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x60]
add edi, edx
add eax, 0xfffffffe
mov dword [esp + 0x64], edi
cdq
mov dword [esp + 0x14], edx
jmp 0x50ebf6
movzx eax, al
mov edx, 1
add edi, edx
mov dword [esp + 0x60], eax
add eax, 0xfffffffe
mov dword [esp + 0x64], edi
cdq
mov dword [esp + 0x14], edx
jmp 0x50ebf6
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
test ecx, ecx
jle 0x50ec3c
lea esi, [ecx - 1]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
lea ecx, [edx + edx*2]
inc edx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x78], edx
mov eax, esi
mov dword [ecx], edi
cdq
dec esi
sub dword [esp + 0x10], 1
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0xc], eax
jne 0x50ec01
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x50ef79
mov eax, dword [esp + 0x24]
inc eax
push eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
push dword [eax + 0xc]
call fcn.004676b0
push dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x18]
push dword [eax + 0xc]
call fcn.00467260
add esp, 0x10
test edi, edi
jne 0x50ec94
mov edi, dword [esp + 0xc]
push dword [esp + 8]
push dword [edi + 0xc]
call fcn.00467900
add esp, 8
cmp eax, 5
jne 0x50ef74
jmp 0x50ee17
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [eax + 0x24]
mov edx, dword [edi + 0x14]
call fcn.004f5cd0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50ef79
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x30]
push dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
call eax
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x50edf7
mov eax, dword [esp + 0x68]
xor esi, esi
mov dword [esp + 0x30], esi
mov edi, 0x7fffffff
test eax, eax
jle 0x50ef40
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x10], eax
cmp dword [ecx], 0
je 0x50ed4f
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
sbb esi, dword [ecx + 0x14]
mov dword [esp + 0x38], eax
mov eax, edi
cdq
cmp esi, edx
jg 0x50ed47
jl 0x50ed39
cmp dword [esp + 0x38], eax
jae 0x50ed47
mov edi, dword [ecx + 8]
mov esi, ecx
sub edi, dword [ecx + 0x10]
mov dword [esp + 0x30], esi
jmp 0x50ed4b
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add ecx, 0x18
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x50ed15
test esi, esi
je 0x50ef40
mov ecx, dword [esi]
mov al, byte [ecx]
test al, 0xfe
jne 0x50ed73
mov dword [esi], 0
jmp 0x50eda0
test al, al
jns 0x50ed88
lea edx, [esp + 0x34]
call fcn.004ea670
mov ecx, eax
mov eax, dword [esp + 0x34]
jmp 0x50ed94
movzx eax, al
mov ecx, 1
mov dword [esp + 0x34], eax
add dword [esi], ecx
add eax, 0xfffffffe
cdq
add dword [esi + 8], eax
adc dword [esi + 0xc], edx
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x50], edi
jge 0x50ee35
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x30]
push dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
call eax
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x50eda4
cmp eax, 0x65
je 0x50ef1b
test eax, eax
je 0x50ecf3
mov edi, dword [esp + 0xc]
push dword [esp + 0x18]
xor esi, esi
cmp eax, 0x65
cmovne esi, eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test esi, esi
jne 0x50ef79
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 8]
mov dword [esp + 0x24], edx
cmp edx, dword [eax + 0x18]
jge 0x50ef79
mov ecx, dword [esp + 0x70]
jmp 0x50eae2
test eax, eax
jne 0x50ede2
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
sub eax, ecx
sub esi, dword [esp + 0x88]
push eax
mov eax, 0x2aaaaaab
imul esi
push ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push dword [esp + 0x30]
lea eax, [esp + 0xa8]
push str._d__d__d__d
push eax
push 0x40
call fcn.0043e1d0
lea esi, [esp + 0xb4]
add esp, 0x1c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x50ee83
mov eax, dword [esp + 0x4c]
sub esi, ecx
add eax, esi
mov dword [esp + 0x38], eax
lea ecx, [eax + 1]
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jl 0x50eee6
cdq
mov ecx, eax
mov edi, edx
mov eax, esi
cdq
add ecx, eax
adc edi, edx
add ecx, 0x64
mov dword [esp + 0x5c], ecx
adc edi, 0
call fcn.004e4f50
test eax, eax
jne 0x50ef5b
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
push edi
push eax
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x50ef5b
mov edi, eax
mov dword [esp + 0x2c], edi
jmp 0x50eeea
mov edi, dword [esp + 0x2c]
push esi
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x54]
add eax, edi
push eax
call fcn.00570750
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], 0
mov byte [eax + edi], 0
jmp 0x50ecf3
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x28], 0
jne 0x50edf3
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov esi, 0x10b
jmp 0x50ef79
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [esp + 0x10]
add esp, 4
xor esi, esi
jmp 0x50ee17
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
jmp 0x50ef74
mov dword [esp + 0x88], edi
mov esi, 7
mov edi, dword [esp + 0x88]
test edi, edi
je 0x50efe2
cmp dword [0x5dac30], 0
je 0x50efd2
mov eax, dword [0x5dfe08]
test eax, eax
je 0x50efa0
push eax
call dword [0x5dac80]
add esp, 4
push edi
call dword [0x5dac5c]
sub dword [0x5dfca8], eax
add esp, 4
dec dword [0x5dfccc]
push edi
call dword [0x5dac54]
mov eax, dword [0x5dfe08]
add esp, 4
test eax, eax
je 0x50efe2
push eax
call dword [0x5dac88]
jmp 0x50efdf
push dword [esp + 0x88]
call dword [0x5dac54]
add esp, 4
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 0xfc]
test edi, edi
je 0x50f041
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x50f013
push ecx
call dword [0x5dac80]
mov eax, dword [esp + 0x38]
add esp, 4
mov edx, edi
mov ecx, eax
call fcn.0043b330
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50f031
push eax
call dword [0x5dac88]
add esp, 4
push dword [esp + 0x38]
call fcn.00465840
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [eax + 0xfc], 0
test esi, esi
je 0x50f0ed
push esi
push dword [esp + 0x70]
call fcn.004665d0
mov esi, dword [esp + 0x34]
add esp, 8
test esi, esi
je 0x50f10a
cmp dword [0x5dac30], 0
je 0x50f0cf
mov eax, dword [0x5dfe08]
test eax, eax
je 0x50f088
push eax
call dword [0x5dac80]
add esp, 4
push esi
call dword [0x5dac5c]
sub dword [0x5dfca8], eax
add esp, 4
dec dword [0x5dfccc]
push esi
call dword [0x5dac54]
mov eax, dword [0x5dfe08]
add esp, 4
test eax, eax
je 0x50f10a
push eax
call dword [0x5dac88]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
push esi
call dword [0x5dac54]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
dec eax
mov ecx, dword [esp + 0x6c]
push fcn.0043b270
push 1
push eax
call fcn.00465ff0
add esp, 0xc
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret