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

Disassembly:
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
mov ax, word [esi + 0x10]
mov cx, word [esi + 0x14]
mov dx, word [esi + 0x16]
mov word [esp + 0x14], ax
mov eax, dword [esi + 0xac]
lea ebp, [esi + 8]
mov dword [esp + 0x20], eax
mov word [esp + 0x18], cx
movzx ax, byte [esi + 0x56]
mov cl, byte [esi + 0x5a]
mov word [esp + 0x10], ax
mov eax, dword [ebp]
mov word [esp + 0x1c], dx
mov dl, byte [esi + 0x5b]
mov byte [esp + 0xe], cl
test eax, eax
mov byte [esp + 0xf], dl
je 0x479638
push eax
call fcn.005fabe7
add esp, 4
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x479655
push eax
call fcn.005fabe7
add esp, 4
mov dword [esi + 0x9c], 0
mov edi, dword [esp + 0x28]
push ebx
mov cl, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 8]
mov dword [ebp], edx
mov ax, word [edi + 0xc]
mov word [esi + 0xc], ax
mov cx, word [edi + 0xe]
mov word [esi + 0xe], cx
mov dx, word [edi + 0x10]
mov word [esi + 0x10], dx
mov ax, word [edi + 0x12]
mov word [esi + 0x12], ax
mov cx, word [edi + 0x14]
mov word [esi + 0x14], cx
mov dx, word [edi + 0x16]
mov word [esi + 0x16], dx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov cl, byte [edi + 0x28]
mov byte [esi + 0x28], cl
mov dx, word [edi + 0x2a]
mov word [esi + 0x2a], dx
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov cl, byte [edi + 0x30]
mov byte [esi + 0x30], cl
mov edx, dword [edi + 0x34]
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov ecx, dword [edi + 0x48]
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x4c], edx
mov ax, word [edi + 0x50]
mov word [esi + 0x50], ax
mov cl, byte [edi + 0x52]
mov byte [esi + 0x52], cl
mov dl, byte [edi + 0x53]
mov byte [esi + 0x53], dl
mov ax, word [edi + 0x54]
mov word [esi + 0x54], ax
mov cl, byte [edi + 0x56]
mov byte [esi + 0x56], cl
mov dx, word [edi + 0x58]
mov word [esi + 0x58], dx
mov al, byte [edi + 0x5a]
mov byte [esi + 0x5a], al
mov cl, byte [edi + 0x5b]
mov byte [esi + 0x5b], cl
mov dx, word [edi + 0x5c]
mov word [esi + 0x5c], dx
mov ax, word [edi + 0x5e]
mov word [esi + 0x5e], ax
mov cx, word [edi + 0x60]
mov word [esi + 0x60], cx
mov dx, word [edi + 0x62]
mov word [esi + 0x62], dx
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov ecx, dword [edi + 0x68]
mov dword [esi + 0x68], ecx
mov dl, byte [edi + 0x6c]
mov byte [esi + 0x6c], dl
mov al, byte [edi + 0x6d]
mov byte [esi + 0x6d], al
mov cx, word [edi + 0x6e]
mov word [esi + 0x6e], cx
mov dl, byte [edi + 0x70]
mov ecx, edi
mov byte [esi + 0x70], dl
lea eax, [esi + 0x72]
sub ecx, esi
mov edx, 3
mov bx, word [ecx + eax]
mov word [eax], bx
add eax, 2
dec edx
jne 0x47977a
lea eax, [esi + 0x78]
mov edx, 3
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x47978f
mov ax, word [edi + 0x84]
mov word [esi + 0x84], ax
mov edx, dword [edi + 0x88]
mov dword [esi + 0x88], edx
mov eax, dword [edi + 0x8c]
mov edx, 0xffffff70
mov dword [esi + 0x8c], eax
lea eax, [esi + 0x90]
sub edx, esi
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
lea ebx, [edx + eax]
cmp ebx, 3
jb 0x4797cd
mov cl, byte [edi + 0x93]
pop ebx
mov byte [esi + 0x93], cl
mov dl, byte [edi + 0x94]
mov byte [esi + 0x94], dl
mov al, byte [edi + 0x95]
mov byte [esi + 0x95], al
mov cl, byte [edi + 0x96]
mov byte [esi + 0x96], cl
mov dl, byte [edi + 0x97]
mov byte [esi + 0x97], dl
mov al, byte [edi + 0x98]
mov byte [esi + 0x98], al
mov cl, byte [edi + 0x99]
mov byte [esi + 0x99], cl
mov dl, byte [edi + 0x9a]
mov byte [esi + 0x9a], dl
mov al, byte [edi + 0x9b]
mov byte [esi + 0x9b], al
mov ecx, dword [edi + 0x9c]
mov dword [esi + 0x9c], ecx
mov dl, byte [edi + 0xa0]
mov byte [esi + 0xa0], dl
mov al, byte [edi + 0xa1]
mov byte [esi + 0xa1], al
mov cl, byte [edi + 0xa2]
mov byte [esi + 0xa2], cl
mov edx, dword [edi + 0xa4]
mov dword [esi + 0xa4], edx
mov eax, dword [edi + 0xa8]
mov dword [esi + 0xa8], eax
mov ecx, dword [edi + 0xac]
mov dword [esi + 0xac], ecx
mov dl, byte [edi + 0xb0]
mov byte [esi + 0xb0], dl
mov al, byte [edi + 0xb1]
mov byte [esi + 0xb1], al
mov cl, byte [edi + 0xb2]
mov byte [esi + 0xb2], cl
mov dl, byte [edi + 0xb3]
mov byte [esi + 0xb3], dl
mov al, byte [edi + 0xb4]
mov byte [esi + 0xb4], al
mov cl, byte [edi + 0xb5]
mov byte [esi + 0xb5], cl
mov edx, dword [edi + 0xb8]
mov dword [esi + 0xb8], edx
mov eax, dword [edi + 0xbc]
mov dl, byte [esp + 0x10]
mov dword [esi + 0xbc], eax
mov ecx, dword [edi + 0xc0]
mov byte [esi + 0x56], dl
mov dword [esi + 0xc0], ecx
mov byte [edi + 0x56], 1
mov al, byte [esi + 0x9b]
test al, al
jbe 0x479988
and eax, 0xff
push 8
push eax
call fcn.005fab6a
mov cl, byte [esi + 0x9b]
mov dword [esi + 0x9c], eax
add esp, 8
xor eax, eax
test cl, cl
jbe 0x479992
mov ecx, dword [edi + 0x9c]
mov edx, dword [esi + 0x9c]
mov ecx, dword [ecx + eax*8]
mov dword [edx + eax*8], ecx
mov edx, dword [edi + 0x9c]
mov ecx, dword [esi + 0x9c]
mov dl, byte [edx + eax*8 + 4]
mov byte [ecx + eax*8 + 4], dl
mov ecx, dword [edi + 0x9c]
mov edx, dword [esi + 0x9c]
mov cl, byte [ecx + eax*8 + 5]
mov byte [edx + eax*8 + 5], cl
xor edx, edx
mov dl, byte [esi + 0x9b]
inc eax
cmp eax, edx
jl 0x47993f
jmp 0x479992
mov dword [esi + 0x9c], 0
mov dword [ebp], 0
mov eax, dword [edi + 8]
push eax
push ebp
call fcn.0049a010
mov cx, word [esp + 0x1c]
mov dx, word [esp + 0x20]
mov ax, word [esp + 0x24]
mov word [esi + 0x10], cx
mov cl, byte [esp + 0x16]
mov word [esi + 0x14], dx
mov dl, byte [esp + 0x17]
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x28]
mov byte [esi + 0x5a], cl
mov byte [esi + 0x5b], dl
mov dword [esi + 0xac], eax
mov cx, word [esi + 0x10]
add esp, 8
mov word [edi + 0x14], cx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4