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

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6402b9
sub esp, 0x50
lea eax, [0x6e06e0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
lea ebx, [edx + ecx]
mov dword [esp + 0x34], ebx
mov dword [esp + 8], ebx
call fcn.0046ca20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
cmp ecx, edx
ja 0x6400c4
mov ebx, ecx
jmp 0x6400f4
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [0x6e06e0]
mov dword [esp + 0x10], eax
call fcn.0046cad0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp], eax
mov ebp, dword [esp + 0x68]
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00472440
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0x34]
cmp ebx, edx
jb 0x64012d
mov ebp, dword [esp + 0x38]
jmp 0x640167
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x6e06e0]
mov dword [esp + 0x10], eax
call fcn.0046cad0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov ebx, ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
add eax, ebp
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00472440
lea eax, [0x6e06e0]
mov dword [esp], eax
mov dword [esp + 4], 0x30
mov dword [esp + 8], 0x30
call fcn.0046ca20
movzx eax, word [esp + 0x54]
lea ecx, [eax - 0x301]
mov edx, dword [esp + 0xc]
cmp cx, 1
ja 0x6401c4
lea eax, [0x74d620]
jmp 0x640210
cmp ax, 0x303
jne 0x6402a0
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x14]
test eax, 8
je 0x6401f7
nop
lea eax, [0x6403c0]
mov dword [esp + 0x48], eax
lea eax, [0x74d5e0]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
jmp 0x640210
nop
lea eax, [0x6402d0]
mov dword [esp + 0x40], eax
lea eax, [0x74d5dc]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax]
mov ebx, dword [str.master_secret]
mov ebp, dword [0x960f3c]
mov esi, dword [0x960f40]
mov dword [esp], edx
mov dword [esp + 4], 0x30
mov dword [esp + 8], 0x30
mov edi, dword [esp + 0x5c]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov edx, eax
call ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0x30
mov dword [esp + 0x88], 0x30
add esp, 0x50
ret
lea eax, [0x6e0660]
mov dword [esp], eax
lea eax, [0x7a3ed8]
mov dword [esp + 4], eax
call fcn.0046ae10
nop
call fcn.004706b0
jmp fcn.00640070