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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x625ac6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0xb0], 0
je 0x5073d2
call fcn.00507520
test al, al
jne 0x50651b
or eax, 0xffffffff
jmp 0x506533
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xb0]
push 0x3e8
push eax
call fcn.00509ec0
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x5065ed
push 0x6e4664
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x5065ed
mov ecx, dword [edi]
mov dword [esp + 0x48], ecx
call fcn.00504a40
mov ecx, dword [esp + 0x48]
neg eax
cmp ecx, eax
jne 0x5065af
lea edx, [esp + 0xd0]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00504460
add esp, 8
test eax, eax
jne 0x5065da
mov eax, dword [0x6e0ea0]
test eax, eax
jne 0x506596
mov eax, 0x6fdb50
mov ecx, dword [0x65329c]
mov esi, dword [ebp + 8]
push ecx
push 0
push eax
mov ecx, esi
call fcn.004e9b90
jmp 0x5073eb
mov eax, dword [edi]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x3c], ecx
js 0x5065ed
lea edx, [esp + 0xd0]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00504490
add esp, 8
test eax, eax
je 0x5073d2
push eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00504d10
add esp, 0xc
jmp 0x5073eb
lea ecx, [esp + 0x54]
push edi
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00505890
mov edx, dword [esp + 0x5a]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x56]
and edx, 0xffff
and eax, 0xffff
mov dword [esp + 0xfc], edx
mov dword [esp + 0xf8], eax
mov eax, dword [0x6e0ea0]
and ecx, 0xffff
xor edx, edx
mov dword [esp + 0xf4], ecx
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], edx
mov dword [esp + 0x100], 1
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], 0x4c
mov dword [esp + 0x114], edx
mov dword [esp + 0xb0], eax
mov ecx, eax
mov dword [esp + 0x15c], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
cmp word [esi], dx
mov byte [esp + 0x15c], 2
mov dword [esp + 0x1c], esi
je 0x506e2d
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov ax, word [esi]
cmp ax, 0x25
je 0x5066b4
push eax
push 1
lea ecx, [esp + 0x10]
call fcn.004e9db0
jmp 0x506e15
add esi, 2
xor eax, eax
mov dword [esp + 0x1c], esi
mov ax, word [esi]
add eax, 0xffffffa7
cmp eax, 0x1e
ja case.0x5066d0.92
xor edx, edx
mov dl, byte [eax + 0x507414]
jmp dword [edx*4 + 0x507404]
push str._04d
jmp 0x5066f1
push str._03d
jmp 0x5066f1
push 0x6c2acc
jmp 0x5066f1
push str._02d
lea ecx, [esp + 0x10]
call fcn.004ea6a0
xor eax, eax
mov ax, word [esi]
cmp eax, 0x79
ja case.0x50670c.21
xor ecx, ecx
mov cl, byte [eax + 0x50748c]
jmp dword [ecx*4 + 0x507434]
push 0
lea ecx, [esp + 0x10]
call fcn.004ebfc0
mov ax, word [esi]
cmp ax, 0x2d
je 0x506743
cmp ax, 0x2b
je 0x506743
cmp ax, 0x20
je 0x506743
push 4
push eax
call dword [sym.imp.MSVCRT.dll_iswctype]
add esp, 8
test eax, eax
je 0x506754
mov dx, word [esi]
lea ecx, [esp + 0xc]
push edx
push 1
call fcn.004e9db0
jmp 0x50671e
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je case.0x50670c.1
push 0x25
push 1
lea ecx, [esp + 0x78]
call fcn.004e9c30
lea ecx, [esp + 0xc]
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0xb0]
push edx
push eax
mov byte [esp + 0x168], 0x20
call fcn.004eada0
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0x21
call fcn.004ea610
mov ecx, dword [esp + 0xac]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x5067c3
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5067c3
push eax
call edi
add esp, 4
mov edx, dword [esp + 0x70]
mov byte [esp + 0x15c], 2
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x5067e7
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5067e7
push eax
call edi
add esp, 4
push 0x64
push 1
lea ecx, [esp + 0x14]
call fcn.004e9db0
jmp 0x5066fa
mov eax, dword [esp + 0x6c]
cmp ax, 7
jne 0x506810
lea ecx, [esp + 0x54]
call fcn.005047a0
mov eax, dword [esp + 0x6c]
xor ecx, ecx
cmp word [esi], 0x61
lea edx, [esp + 0xbc]
sete cl
inc ecx
and eax, 0xffff
push ecx
push eax
push edx
call fcn.00504e10
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 3
call fcn.0047fb30
mov eax, dword [esp + 0xbc]
mov byte [esp + 0x15c], 2
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x506e15
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506e15
push eax
call edi
add esp, 4
jmp 0x506e15
mov edx, dword [esp + 0x60]
xor ecx, ecx
cmp word [esi], 0x62
lea eax, [esp + 0x7c]
sete cl
inc ecx
push ecx
push edx
push eax
call fcn.00504c90
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 4
call fcn.0047fb30
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 0xc]
mov ecx, dword [eax]
mov byte [esp + 0x15c], 2
cmp ecx, 0xffffffff
je 0x506e0b
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506e0b
push eax
call edi
add esp, 4
jmp 0x506e15
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x118]
push edx
push eax
call fcn.00505890
mov eax, dword [eax + 0x10]
mov ecx, 0x1c
mov dword [esp + 0x48], eax
cdq
idiv ecx
cmp edx, 0xa
jge 0x506906
add edx, 0x7c4
jmp 0x50690c
add edx, 0x7a8
mov eax, 0x51eb851f
mov dword [esp + 0x24], edx
imul edx
sar edx, 5
mov eax, edx
mov ecx, 0x64
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x48]
mov esi, edx
cdq
idiv ecx
mov dword [esp + 0x84], edx
mov edi, eax
cdq
and edx, 3
add eax, edx
mov ecx, eax
mov eax, esi
cdq
and edx, 3
add eax, edx
sar ecx, 2
sar eax, 2
sub ecx, eax
sub ecx, edi
add ecx, esi
mov esi, 7
mov eax, ecx
cdq
idiv esi
mov esi, dword [esp + 0x24]
test edx, edx
je 0x506998
mov edx, esi
and edx, reloc.WSOCK32.dll_closesocket
jns 0x506975
dec edx
or edx, 0xfffffffc
inc edx
inc esi
mov eax, 1
test edx, edx
jne 0x506984
mov eax, 2
add ecx, eax
mov edi, 7
mov eax, ecx
cdq
idiv edi
test edx, edx
jne 0x506966
mov dword [esp + 0x24], esi
cmp esi, 0x7d0
jl 0x5069a7
sub esi, 0x1c
mov dword [esp + 0x24], esi
mov eax, dword [0x6e0ea0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
push esi
lea eax, [esp + 0x2c]
push 0x6c2acc
push eax
mov byte [esp + 0x168], 6
call fcn.004ec2c0
mov eax, esi
mov ecx, 0x64
cdq
idiv ecx
push edx
lea edx, [esp + 0x40]
push 0x6c2acc
push edx
call fcn.004ec2c0
mov eax, dword [0x65329c]
mov ecx, dword [ebp + 0xc]
add esp, 0x18
push eax
push 0
push ecx
lea ecx, [esp + 0x38]
call fcn.004e9b90
mov eax, dword [0x6e0ea0]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x15c], 0xb
mov edi, 1
mov esi, edi
lea ecx, [esp + 0x14]
neg esi
push esi
push 1
call fcn.004e9c30
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x160], 0xc
call fcn.004ec040
cmp eax, 0xffffffff
je 0x506a6a
push esi
push 1
lea ecx, [esp + 0x1c]
call fcn.004e9db0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
call fcn.004ec040
cmp eax, 0xffffffff
jne 0x506a4b
lea ecx, [edi - 1]
cmp ecx, 3
ja case.default.0x506a75
lea edx, [edi - 1]
jmp dword [edx*4 + 0x507508]
lea ecx, [esp + 0x38]
jmp 0x506a9c
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
jmp 0x506aa1
lea edx, [esp + 0x14]
lea ecx, [esp + 0x44]
push edx
jmp 0x506aa1
lea ecx, [esp + 0x40]
lea eax, [esp + 0x14]
push eax
call fcn.004ea610
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x15c], 0xb
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x506ace
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506ace
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
inc edi
cmp edi, 5
jl 0x506a20
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
push 1
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.004ebbb0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 1
push ecx
test eax, eax
push edx
lea ecx, [esp + 0x38]
seta byte [esp + 0x1f]
call fcn.004ebbb0
test eax, eax
ja 0x506b1a
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], 0
test al, al
je 0x506b1f
mov byte [esp + 0x13], 1
lea eax, [esp + 0xd0]
push eax
call fcn.00504de0
mov eax, dword [esp + 0x5a]
mov ecx, dword [esp + 0x5e]
mov edx, dword [esp + 0x5c]
and eax, 0xffff
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x70]
add esp, 4
and ecx, 0xffff
and edx, 0xffff
cmp ax, 7
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xd4], edx
jne 0x506b78
lea ecx, [esp + 0x54]
call fcn.005047a0
mov eax, dword [esp + 0x6c]
and eax, 0xffff
push 0
lea ecx, [esp + 0x78]
mov dword [esp + 0xec], eax
call fcn.005049b0
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00506070
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
and edx, 0xffff
and eax, 0xffff
mov dword [esp + 0xdc], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x60]
add ecx, 0xfffff894
cmp word [edx], 0x63
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xf0], 0
mov eax, 0x6cb080
je 0x506bf5
mov eax, 0x6e4644
lea ecx, [esp + 0xd0]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
call fcn.00504d10
mov eax, dword [0x6e0ea0]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x5c]
push eax
push str._04d
push ecx
mov byte [esp + 0x174], 0xf
call fcn.004ec2c0
mov edx, dword [esp + 0x9c]
lea eax, [esp + 0x64]
push edx
push str._02d
push eax
call fcn.004ec2c0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x4c]
add esp, 0x24
push 1
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.004ebbb0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
push 1
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004ebbb0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
push 1
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.004ebbb0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
push 1
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.004ebbb0
mov al, byte [esp + 0x13]
test al, al
je 0x506cd1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 1
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004ebbb0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
push 1
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.004ebbb0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
push eax
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.004ea760
mov ecx, dword [esp + 0x4c]
mov esi, dword [sym.imp.MSVCRT.dll_free]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x506d06
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506d06
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x50]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x506d22
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506d22
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x506d3d
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506d3d
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x40]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x506d59
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506d59
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x44]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x506d75
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506d75
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x506d90
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506d90
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x38]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x506dac
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506dac
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x506dc8
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506dc8
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x506de3
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506de3
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x15c], 2
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x506e0b
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506e0b
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x1c]
add esi, 2
cmp word [esi], 0
jne 0x50669a
mov eax, dword [0x6e0ea0]
mov ecx, dword [esp + 8]
xor edx, edx
mov esi, dword [ecx - 8]
mov edi, dword [ebp + 8]
cmp esi, edx
jne 0x507340
mov dword [edi], eax
jmp 0x507352
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
and edx, 0xffff
lea ecx, [esp + 0xc8]
push edx
push eax
push ecx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0xc8]
lea eax, [edx - 0xc]
jmp 0x5068ac
mov eax, dword [esp + 0x5a]
mov ecx, dword [esp + 0xc]
and eax, 0xffff
lea edx, [esp + 0x8c]
push eax
push ecx
push edx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x11
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff4
jmp 0x5068ac
mov eax, dword [esp + 0x5a]
cmp ax, 0xc
jbe 0x506ee5
and eax, 0xffff
sub eax, 0xc
jmp 0x506ef6
test ax, ax
je 0x506ef1
and eax, 0xffff
jmp 0x506ef6
mov eax, 0xc
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x12
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff4
jmp 0x5068ac
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00506070
and eax, 0xffff
lea edx, [esp + 0x94]
push eax
push esi
push edx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x13
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov eax, dword [esp + 0x94]
add eax, 0xfffffff4
jmp 0x507184
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00505890
mov ax, word [eax]
lea ecx, [esp + 0xcc]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x14
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0xcc]
lea eax, [edx - 0xc]
jmp 0x5068ac
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0xc]
inc eax
lea edx, [esp + 0x9c]
push eax
push ecx
push edx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x15
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff4
jmp 0x5068ac
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0xc]
and ecx, 0xffff
lea eax, [esp + 0xc0]
push ecx
push edx
push eax
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x16
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov ecx, dword [esp + 0xc0]
jmp 0x5068a9
lea edx, [esp + 0xf4]
lea eax, [esp + 0xa4]
push edx
push 0x6e45ac
push eax
call fcn.00504d10
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x17
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov ecx, dword [esp + 0xa4]
jmp 0x5068a9
mov edx, dword [esp + 0x56]
mov eax, dword [esp + 0xc]
and edx, 0xffff
lea ecx, [esp + 0xc4]
push edx
push eax
push ecx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x18
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0xc4]
lea eax, [edx - 0xc]
jmp 0x5068ac
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
push eax
push 2
call fcn.005060c0
and eax, 0xffff
lea ecx, [esp + 0x78]
push eax
push esi
push ecx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x19
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0x78]
jmp 0x507181
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
push eax
push 1
call fcn.005060c0
and eax, 0xffff
lea ecx, [esp + 0x80]
push eax
push esi
push ecx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x1a
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0x80]
lea eax, [edx - 0xc]
mov ecx, dword [eax]
mov byte [esp + 0x15c], 2
cmp ecx, 0xffffffff
je 0x506e0b
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x506e0b
push eax
call edi
add esp, 4
jmp 0x506e11
mov eax, dword [esp + 0x6c]
cmp ax, 7
jne 0x5071c4
lea ecx, [esp + 0x54]
call fcn.005047a0
mov eax, dword [esp + 0x6c]
and eax, 0xffff
lea ecx, [esp + 0x88]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x1b
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0x88]
lea eax, [edx - 0xc]
jmp 0x5068ac
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x90]
push eax
push 0x6e3158
push ecx
call fcn.00504d10
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x1c
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
jmp 0x5068ac
mov eax, dword [esp + 0x64]
mov ecx, 0x64
cdq
idiv ecx
lea eax, [esp + 0x98]
push edx
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x1d
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov ecx, dword [esp + 0x98]
jmp 0x5068a9
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.004ec180
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x1e
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0xa0]
lea eax, [edx - 0xc]
jmp 0x5068ac
lea eax, [esp + 0xf4]
lea ecx, [esp + 0xa8]
push eax
push 0x6e463c
push ecx
call fcn.00504d10
add esp, 0xc
mov eax, dword [eax]
mov byte [esp + 0x15c], 0x1f
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004ea760
mov edx, dword [esp + 0xa8]
lea eax, [edx - 0xc]
jmp 0x5068ac
push 0x25
push 1
lea ecx, [esp + 0x10]
call fcn.004e9db0
jmp 0x506e15
mov ax, word [esi]
lea ecx, [esp + 8]
push eax
push 1
call fcn.004e9db0
jmp 0x506e15
mov dword [edi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x507352
inc eax
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x507379
lea ecx, [esi - 1]
cmp ecx, edx
mov dword [eax], ecx
jne 0x507375
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor edx, edx
mov ecx, dword [esp + 8]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x507397
dec ecx
cmp ecx, edx
mov dword [eax], ecx
jne 0x507397
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor edx, edx
mov ecx, dword [esp + 0xb0]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x5073ba
dec ecx
cmp ecx, edx
mov dword [eax], ecx
jne 0x5073ba
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x6e0ea0]
test eax, eax
jne 0x5073e0
mov eax, 0x6fdb50
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.0041d7d0
mov ecx, dword [esp + 0x154]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc