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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62c35a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x47994e
lea ecx, [esp + 0x1c]
call dword [0x660330]
mov dword [esp + 0x80], esi
mov dword [esp + 0x1c], 0x40cc48
mov dword [esp + 0x28], 0x40cb40
mov dword [esp + 0x80], 0xffffffff
lea eax, [esp + 0x1c]
push 0x651bb0
push eax
call 0x5a4c84
cmp word [esi], 0x6e
je 0x479993
lea ecx, [esp + 0x1c]
call dword [0x660330]
mov dword [esp + 0x80], 1
mov dword [esp + 0x1c], 0x40cc48
mov dword [esp + 0x28], 0x40bbf0
mov dword [esp + 0x80], 0xffffffff
lea eax, [esp + 0x1c]
push 0x651bb0
push eax
call 0x5a4c84
mov edx, dword [esi + 0x24]
xor ecx, ecx
test edx, edx
je 0x4799b3
mov eax, dword [esi + 0x28]
add eax, 8
cmp dword [eax], 0
jne 0x479b44
inc ecx
add eax, 0xc
cmp ecx, edx
jb 0x4799a2
mov eax, dword [0x65e8d4]
add eax, 4
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x48], 0
mov byte [esp + 0x4a], 0
mov dword [esp + 0x44], 8
mov dword [esp + 0x80], 2
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
call fcn.0047cc3e
mov byte [esp + 0x80], 3
cmp dword [esi + 0x24], 0
mov dword [esp + 0x10], 0
jbe 0x479aae
xor ebx, ebx
mov eax, dword [esi + 0x28]
mov eax, dword [ebx + eax]
mov eax, dword [eax + 0x80]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x210]
mov eax, dword [ecx]
push dword [eax + 0x10]
lea eax, [ecx + 0x810]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402cde
mov eax, dword [esp + 0x14]
mov ecx, edi
dec eax
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x18]
push eax
push dword [ebp + 0x10]
mov eax, dword [esi + 0x28]
push dword [ebp + 0xc]
push dword [ebx + eax + 4]
call fcn.0047f8ce
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x54]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x58]
call dword [eax + 0x28]
mov eax, dword [esp + 0x10]
lea ebx, [ebx + 0xc]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x24]
jb 0x479a30
mov ecx, dword [edi + 0x38]
lea eax, [esi + 4]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x54]
push eax
push dword [esi + 0x30]
push dword [esi + 0x2c]
call 0x58b48e
mov esi, eax
mov byte [esp + 0x80], 2
lea eax, [esp + 0x54]
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], 0x4263e4
mov byte [esp + 0x80], 5
cmp dword [esp + 0x64], 0
je 0x479b09
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x80], 2
mov dword [esp + 0x54], 0x40c244
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x2c]
call 0x3bd04e
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x30], 0
jne 0x479b71
mov ecx, dword [edi + 4]
mov dword [edi + 0x30], 0x8ec4
cmp byte [ecx + 0x88], 0
je 0x479b71
lea eax, [esi + 4]
push eax
push 0x8ec4
push dword [ecx + 0x1c]
call 0x3cd1ce
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10