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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f3557
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x70], 8
mov esi, dword [ebp + 0xc]
mov edi, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], esi
jb 0x4790ff
mov eax, dword [eax + 0x5c]
jmp 0x479102
add eax, 0x5c
xor ebx, ebx
cmp word [eax], 0x2d
jne 0x47910d
add eax, 2
call fcn.0042b0a0
mov ecx, dword [edi + 0x2674]
mov eax, dword [edi + 0x2670]
push 0
push ecx
mov dword [edi + 0x2694], esi
mov edx, dword [esi]
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [edi + 0x266c]
mov ecx, dword [edi + 0x2694]
mov eax, dword [edi + 0x2668]
mov esi, dword [ecx]
push edx
mov edx, dword [esi]
push eax
call edx
mov esi, dword [esp + 0x14]
mov ecx, esi
mov ebx, edi
call fcn.00478740
test al, al
mov dword [esp + 0x38], 7
jne 0x4791b3
xor edi, edi
mov eax, esi
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x479174
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x28]
call fcn.00402770
mov edi, esi
call fcn.0042a6f0
cmp dword [esp + 0x38], 8
jb 0x4791a9
mov eax, dword [esp + 0x24]
push eax
call fcn.0059b877
add esp, 4
mov eax, 0xe0000008
jmp 0x4794cf
xor esi, esi
lea eax, [edi + 0x2210]
mov dword [esp + 0x34], esi
mov word [esp + 0x24], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4791c7
sub eax, edx
sar eax, 1
push eax
lea ebx, [edi + 0x2210]
push ebx
lea esi, [esp + 0x28]
call fcn.00402770
mov ecx, esi
push ecx
mov dword [esp + 0x28c], 0
call fcn.0042a480
add esp, 4
test al, al
sete byte [esp + 0x13]
or esi, 0xffffffff
mov dword [esp + 0x288], esi
cmp dword [esp + 0x38], 8
jb 0x479222
mov edx, dword [esp + 0x24]
push edx
call fcn.0059b877
add esp, 4
cmp byte [esp + 0x13], 0
je 0x479289
mov edx, ebx
lea eax, [esp + 0x20]
call fcn.004024d0
mov dword [esp + 0x288], 1
mov eax, dword [edi + 0x266c]
mov ecx, dword [edi + 0x2668]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00439990
add esp, 0xc
test al, al
sete bl
mov dword [esp + 0x288], esi
cmp dword [esp + 0x38], 8
jb 0x47927a
mov eax, dword [esp + 0x24]
push eax
call fcn.0059b877
add esp, 4
test bl, bl
je 0x479289
call dword [0x5fd374]
jmp 0x4794cf
cmp word [edi + 0x1008], 0
mov byte [edi + 0x369b], 0
je 0x4792a1
mov byte [edi + 0x369b], 1
movzx eax, word [edi + 0x2660]
lea ecx, [edi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x2694]
test ecx, ecx
lea edx, [edi + 0x808]
mov byte [edi + 0x369a], 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
je 0x4792d7
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 1
call eax
xor esi, esi
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov ebx, edi
add esi, 1
call fcn.00476f10
test eax, eax
jne 0x479338
mov ecx, dword [edi + 0x2668]
cmp ecx, dword [esp + 0x44]
jne 0x47931d
mov edx, dword [edi + 0x266c]
cmp edx, dword [esp + 0x48]
je 0x4793b9
cmp esi, 4
jge 0x479366
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
mov eax, edi
call fcn.00479500
jmp 0x4792e0
cmp eax, 0xe0000005
jne 0x47935a
cmp esi, 4
jge 0x479366
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
mov eax, edi
call fcn.00479500
jmp 0x4792e0
cmp eax, 0xe000000a
jne 0x479366
jmp 0x4794cf
push 0x206
lea edx, [esp + 0x72]
push 0
push edx
mov word [esp + 0x78], 0
call fcn.005be600
lea eax, [edi + 0x2008]
lea edx, [esp + 0x78]
add esp, 0xc
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x479390
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x6c]
push eax
push ecx
mov ecx, dword [esp + 0x48]
mov edx, edi
call fcn.00478b40
jmp 0x4794cf
mov eax, dword [esp + 0x1c]
mov edx, edi
call fcn.00478a70
mov dx, word [esp + 0x18]
mov eax, dword [esp + 0x14]
mov word [edi + 0x3698], dx
mov edx, edi
call fcn.00478a90
lea edx, [edi + 0x2008]
lea eax, [esp + 0x20]
call fcn.004024d0
mov dword [esp + 0x288], 2
mov ecx, dword [edi + 0x2694]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x20]
push edx
call eax
or esi, 0xffffffff
mov ebx, 8
mov dword [esp + 0x288], esi
cmp dword [esp + 0x38], ebx
jb 0x479429
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0059b877
add esp, 4
lea edx, [edi + 0x2210]
lea eax, [esp + 0x20]
call fcn.004024d0
mov dword [esp + 0x288], 3
mov ecx, dword [edi + 0x2694]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x20]
push eax
call edx
mov dword [esp + 0x288], esi
cmp dword [esp + 0x38], ebx
jb 0x47946f
mov eax, dword [esp + 0x24]
push eax
call fcn.0059b877
add esp, 4
lea edx, [edi + 0x2418]
lea eax, [esp + 0x50]
call fcn.004024d0
mov dword [esp + 0x288], 4
mov ecx, dword [edi + 0x2694]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x50]
push eax
call edx
mov dword [esp + 0x288], esi
cmp dword [esp + 0x68], ebx
jb 0x4794b5
mov eax, dword [esp + 0x54]
push eax
call fcn.0059b877
add esp, 4
xor eax, eax
mov ecx, edi
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], eax
mov word [esp + 0x54], ax
call fcn.004777e0
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 8