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

Disassembly:
push 0xffffffffffffffff
push 0x652e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x18], edi
je 0x5110b6
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x5110b6
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x78]
push esi
call fcn.00643d2c
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x6c], 0
call fcn.00644698
mov eax, dword [eax]
push 0x6a0c4c
push eax
call dword [fcn.0065f1ec]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00643d26
test bl, bl
jne 0x5110a5
push 0x5c
lea ecx, [esp + 0x7c]
call fcn.00644680
inc eax
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x80]
call fcn.00644440
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x68], 1
call fcn.00644098
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], bl
call fcn.00643d26
mov edx, dword [esp + 0x78]
mov ecx, edi
push edx
call fcn.00510ab0
test eax, eax
je 0x5110a5
lea ecx, [esp + 0x2c]
call fcn.00644002
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
call fcn.00644002
mov eax, dword [esp + 0x6c]
push 0
push 0x20
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 3
call fcn.00643ffc
test eax, eax
je 0x511089
push 0
push 0x1041
push esi
lea ecx, [esp + 0x48]
call fcn.00643ffc
test eax, eax
jne 0x510f41
lea ecx, [esp + 0x2c]
call fcn.00643ff0
jmp 0x511089
push 0x100000
call fcn.00643b70
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x510f6d
lea ecx, [esp + 0x2c]
call fcn.00643ff0
lea ecx, [esp + 0x3c]
call fcn.00643ff0
jmp 0x511089
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x4d], ecx
mov dword [esp + 0x1d], edx
mov dword [esp + 0x51], ecx
mov dword [esp + 0x21], edx
mov dword [esp + 0x55], ecx
lea eax, [esp + 0x1c]
mov word [esp + 0x59], cx
mov dword [esp + 0x25], edx
mov byte [esp + 0x5b], cl
mov byte [esp + 0x1c], cl
mov ecx, dword [esp + 0x74]
push eax
mov word [esp + 0x2d], dx
push ebp
push ecx
mov byte [esp + 0x58], 0
mov byte [esp + 0x37], dl
call dword [sym.imp.TGear.dll_MD5BIN_Buffer]
add esp, 0xc
mov dword [esp + 0x70], ebx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x2c]
push 0x100000
push edi
lea ecx, [esp + 0x34]
call dword [edx + 0x3c]
mov esi, eax
cmp esi, 0x10
jb 0x511033
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
lea ecx, [esi + edi - 0x10]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
push 0x10
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x14]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], eax
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x78]
push edx
push eax
push esi
push edi
call fcn.00510c50
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x51106e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
push ecx
push eax
lea ecx, [esp + 0x44]
call dword [edx + 0x40]
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x511061
push eax
call fcn.00643cfc
add esp, 4
mov dword [esp + 0x70], ebx
cmp esi, 0x100000
jne 0x5110cd
jmp 0x510fc0
lea ecx, [esp + 0x2c]
call fcn.00643ff0
lea ecx, [esp + 0x3c]
call fcn.00643ff0
push edi
call fcn.00643cfc
add esp, 4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
call fcn.00643fea
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
call fcn.00643fea
lea ecx, [esp + 0x78]
mov dword [esp + 0x64], 0xffffffff
call fcn.00643d26
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x10
lea ecx, [esp + 0x2c]
call fcn.00643ff0
lea ecx, [esp + 0x3c]
call fcn.00643ff0
push edi
call fcn.00643cfc
add esp, 4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
call fcn.00643fea
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
call fcn.00643fea
lea ecx, [esp + 0x78]
mov dword [esp + 0x64], 0xffffffff
call fcn.00643d26
mov eax, 1
jmp 0x5110b8