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

Disassembly:
push ebp
mov edx, 0x178
push edi
push esi
push ebx
sub esp, 0x8c
mov ebp, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
test ebp, 1
mov edi, ebp
jne 0x4749d0
test edi, 2
jne 0x4749e5
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x4744c5
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
and edx, 1
je 0x4744cd
mov byte [edi], 0
lea eax, [ebp + 0x50]
mov dword [ebp + 0x170], esi
mov dword [ebp + 0x174], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], eax
call esi
movzx eax, byte [ebp + 0x50]
movzx edx, byte [ebp + 0x51]
movzx ebx, byte [ebp + 0x55]
movzx ecx, byte [ebp + 0x52]
shl eax, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [ebp + 0x53]
shl ebx, 0x10
shl ecx, 8
mov dword [ebp + 0x60], 0
or eax, edx
movzx edx, byte [ebp + 0x54]
or eax, ecx
movzx ecx, byte [ebp + 0x5a]
mov dword [esp + 0x24], eax
movzx eax, byte [ebp + 0x58]
mov dword [ebp + 0x64], 0
shl edx, 0x18
or edx, ebx
movzx ebx, byte [ebp + 0x57]
shl eax, 0x18
shl ecx, 8
mov dword [ebp + 0x68], 0
or edx, ebx
movzx ebx, byte [ebp + 0x56]
mov dword [ebp + 0x6c], 0
shl ebx, 8
or edx, ebx
movzx ebx, byte [ebp + 0x5d]
mov dword [esp + 0x20], edx
movzx edx, byte [ebp + 0x59]
shl ebx, 0x10
shl edx, 0x10
or eax, edx
movzx edx, byte [ebp + 0x5b]
or eax, edx
movzx edx, byte [ebp + 0x5c]
or eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x14]
shl edx, 0x18
or edx, ebx
movzx ebx, byte [ebp + 0x5f]
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0xe0], ecx
or edx, ebx
movzx ebx, byte [ebp + 0x5e]
mov dword [ebp + 0x5c], edi
shl ebx, 8
or edx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov edx, edi
shr edx, 1
mov dword [ebp + 0x54], ebx
mov eax, esi
shrd eax, edi, 1
mov dword [ebp + 0x58], esi
mov dword [ebp + 0xe4], ebx
mov dword [ebp + 0xec], edi
mov edi, ecx
shl edi, 0x1f
mov dword [ebp + 0xe8], esi
mov esi, ebx
mov ebx, ecx
mov ecx, edi
mov edi, edx
or edi, ecx
mov edx, esi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, ebx
shrd eax, esi, 1
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
and edi, 1
mov ecx, edi
mov edi, dword [esp + 0x34]
neg ecx
mov ebx, esi
and ecx, 0xe1000000
shr edx, 1
xor ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
shrd ebx, edi, 1
mov dword [ebp + 0xa8], esi
mov esi, edi
shr esi, 1
mov dword [ebp + 0xa0], edx
mov dword [ebp + 0xa4], ecx
mov ecx, edx
mov edx, dword [esp + 0x1c]
shl ecx, 0x1f
or ecx, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
shrd eax, edx, 1
shr edx, 1
mov ecx, esi
and ecx, 1
neg ecx
and ecx, 0xe1000000
xor ecx, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], eax
mov dword [ebp + 0xac], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [ebp + 0x80], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x84], ebx
mov ebx, dword [esp + 0x2c]
mov dword [ebp + 0x88], ecx
mov edx, ecx
mov ecx, ebx
shrd edx, ebx, 1
shr ecx, 1
mov dword [ebp + 0x8c], ebx
mov ebx, ecx
mov ecx, edx
mov edx, eax
shl edx, 0x1f
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x30]
or dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x28]
and ebx, 1
mov eax, ebx
mov ebx, dword [esp + 0x34]
neg eax
and eax, 0xe1000000
shrd ecx, ebx, 1
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x48]
shr ebx, 1
mov dword [ebp + 0x70], ecx
mov ecx, dword [esp + 0x30]
xor eax, ebx
mov ebx, dword [esp + 0x40]
mov dword [ebp + 0x74], eax
xor edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov dword [ebp + 0x90], edx
mov edx, dword [esp + 0x38]
xor edx, dword [esp + 0x2c]
mov dword [ebp + 0x78], ebx
mov ebx, dword [esp + 0x38]
xor ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
mov dword [ebp + 0x9c], edx
mov edx, dword [esp + 0x18]
xor edx, dword [esp + 0x48]
mov dword [ebp + 0x7c], ebx
mov ebx, dword [esp + 0x34]
mov dword [ebp + 0x98], ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
xor ebx, eax
mov dword [ebp + 0x94], ebx
xor edx, eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x50]
mov dword [ebp + 0xb0], edx
mov edx, dword [esp + 0x54]
mov dword [ebp + 0xb4], edx
mov edx, dword [esp + 0x3c]
xor edx, esi
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x38]
xor edx, edi
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x58]
mov dword [ebp + 0xb8], edx
mov edx, dword [esp + 0x5c]
mov dword [ebp + 0xbc], edx
mov edx, dword [esp + 0x30]
xor edx, dword [esp + 0x18]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x34]
xor edx, dword [esp + 0x1c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x60]
mov dword [ebp + 0xc0], edx
mov edx, dword [esp + 0x64]
mov dword [ebp + 0xc4], edx
mov edx, dword [esp + 0x28]
xor edx, esi
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x2c]
xor edx, edi
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x68]
mov dword [ebp + 0xc8], edx
mov edx, dword [esp + 0x6c]
mov dword [ebp + 0xcc], edx
mov edx, dword [esp + 0x40]
xor edx, dword [esp + 0x18]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x1c]
xor edx, ebx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x70]
mov dword [ebp + 0xd0], edx
mov edx, dword [esp + 0x74]
mov dword [ebp + 0xd4], edx
mov edx, esi
xor eax, dword [esp + 0x24]
xor edx, ecx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x4c]
xor ebx, dword [esp + 0x24]
mov dword [ebp + 0xf4], eax
mov eax, dword [esp + 0x3c]
xor eax, dword [esp + 0x10]
xor edx, edi
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x78]
mov dword [ebp + 0xf8], eax
mov eax, dword [esp + 0x38]
xor eax, dword [esp + 0x14]
mov dword [ebp + 0xd8], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0xfc], eax
mov eax, dword [esp + 0x30]
xor eax, dword [esp + 0x20]
mov dword [ebp + 0xdc], edx
mov edx, dword [esp + 0x48]
mov dword [ebp + 0x100], eax
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x24]
xor edx, dword [esp + 0x20]
mov dword [ebp + 0x104], eax
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x10]
mov dword [ebp + 0xf0], edx
mov dword [ebp + 0x108], eax
mov eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x14]
mov dword [ebp + 0x10c], eax
mov eax, dword [esp + 0x40]
xor eax, dword [esp + 0x20]
mov dword [ebp + 0x110], eax
mov dword [ebp + 0x114], ebx
mov eax, dword [esp + 0x4c]
xor ecx, dword [esp + 0x10]
xor eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov dword [ebp + 0x118], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x11c], eax
mov eax, dword [esp + 0x18]
xor eax, ecx
mov dword [ebp + 0x120], eax
mov eax, dword [esp + 0x1c]
xor eax, ebx
mov dword [ebp + 0x124], eax
mov eax, dword [esp + 0x10]
xor eax, esi
mov esi, dword [esp + 0x14]
mov dword [ebp + 0x128], eax
mov eax, dword [esp + 0x5c]
xor eax, dword [esp + 0x14]
xor esi, edi
mov edi, dword [esp + 0x58]
xor edi, dword [esp + 0x10]
mov dword [ebp + 0x12c], esi
mov esi, dword [esp + 0x50]
mov dword [ebp + 0x13c], eax
mov dword [ebp + 0x138], edi
mov edi, dword [esp + 0x60]
xor esi, ecx
mov dword [ebp + 0x130], esi
mov esi, dword [esp + 0x54]
xor edi, ecx
mov dword [ebp + 0x140], edi
mov edi, dword [esp + 0x64]
xor esi, ebx
mov dword [ebp + 0x134], esi
xor edi, ebx
mov dword [ebp + 0x144], edi
mov edi, dword [esp + 0x68]
xor edi, dword [esp + 0x10]
mov dword [ebp + 0x148], edi
mov edi, dword [esp + 0x6c]
xor edi, dword [esp + 0x14]
mov dword [ebp + 0x14c], edi
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [ebp + 0x160], fcn.00474040
xor eax, ecx
mov dword [ebp + 0x150], eax
mov eax, dword [esp + 0x74]
mov dword [ebp + 0x164], 0x474250
xor eax, ebx
mov dword [ebp + 0x154], eax
mov eax, dword [esp + 0x78]
xor eax, esi
mov dword [ebp + 0x158], eax
mov eax, dword [esp + 0x7c]
xor eax, edi
mov dword [ebp + 0x15c], eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp + 1]
mov dl, 0x77
test edi, 2
mov byte [ebp], 0
je 0x4744ae
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub edx, 2
jmp 0x4744ae