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

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