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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x150
call 0x476a41
pop eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x88], ecx
mov edi, dword [0x4de47c]
mov edi, dword [edi]
xor edi, ebp
mov dword [ebp - 0x10], edi
mov edi, esi
mov dword [ebp - 0x84], edi
mov edi, eax
mov dword [ebp - 0x80], edi
mov di, cx
mov word [ebp - 0x7c], di
mov ebx, ecx
shr ebx, 0x10
and ebx, 0x1f
mov byte [ebp - 0x7a], bl
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], eax
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x6c]
call fcn.00469780
cmp word [ebp - 0x6c], 0
je 0x476af3
mov ecx, dword [ebp - 0x94]
mov ax, word [ebp - 0x6c]
mov word [ebp - 0x68], ax
call fcn.00401c30
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x476b75
jmp 0x476ae2
mov eax, dword [ebp - 0x8c]
add esp, 0x150
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x84]
movzx ecx, byte [ebp - 0x6a]
mov edx, ecx
mov byte [ebp - 0x9d], dl
mov byte [ebp - 0x6d], dl
sub eax, ecx
setae al
movzx ecx, al
call fcn.00404480
mov al, byte [ebp - 0x9d]
add al, 4
movzx eax, al
and eax, 7
mov dword [ebp - 0x9c], eax
xor eax, eax
test al, al
jne 0x476b8b
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax*4 + 0x47732c]
add eax, ecx
jmp eax
mov eax, dword [ebp - 0x90]
mov cl, byte [ebp - 0x9d]
mov word [ebp - 0x14], 0
and cl, 7
mov byte [ebp - 0x12], cl
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x476b75
jmp 0x476b7a
call fcn.004a85b0
mov eax, dword [ebp - 0x8c]
add esp, 0x150
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xa4], ecx
xor eax, eax
cmp eax, ecx
jb 0x476bf6
jmp 0x476bf8
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
and eax, 0x1fffff
sub eax, 0x100
jb 0x476c18
jmp 0x476c1a
jmp 0x476bd6
mov edx, dword [ebp - 0xa4]
xor ecx, ecx
call fcn.00401ee0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x88]
mov byte [eax], cl
jmp 0x476b46
jmp 0x476c05
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0xb0], ecx
xor eax, eax
cmp eax, ecx
jb 0x476c8d
jmp 0x476c8f
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xbc], ecx
and eax, 0x1fffc0
shr eax, 6
mov dword [ebp - 0xb8], eax
mov al, 1
test al, al
jne 0x476cbb
jmp 0x476cbd
jmp 0x476c65
mov edx, dword [ebp - 0xb0]
xor ecx, ecx
call fcn.00401ee0
mov eax, dword [ebp - 0xb8]
or eax, 0xc0
mov dword [ebp - 0xc0], eax
and eax, 0x1fffff
sub eax, 0x100
jb 0x476d19
jmp 0x476d1b
jmp 0x476c9c
mov ecx, str.shift_amount_is_greater_than_the_type_size
mov edx, 0x2a
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xc0]
mov byte [edx], bl
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0xc4], ecx
mov eax, 1
cmp eax, ecx
jb 0x476d67
jmp 0x476d69
jmp 0x476cdf
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc8]
inc ecx
mov dword [ebp - 0xd0], ecx
and eax, 0x3f
or eax, 0x80
mov dword [ebp - 0xcc], eax
sub eax, 0x100
jb 0x476d8c
jmp 0x476d8e
jmp 0x476d3d
mov edx, dword [ebp - 0xc4]
mov ecx, 1
call fcn.00401ee0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xcc]
mov byte [eax], cl
jmp 0x476b46
jmp 0x476d79
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0xd4], ecx
xor eax, eax
cmp eax, ecx
jb 0x476e01
jmp 0x476e03
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], ecx
and eax, 0x1ff000
shr eax, 0xc
mov dword [ebp - 0xdc], eax
mov al, 1
test al, al
jne 0x476e2f
jmp 0x476e31
jmp 0x476dd9
mov edx, dword [ebp - 0xd4]
xor ecx, ecx
call fcn.00401ee0
mov eax, dword [ebp - 0xdc]
or eax, 0xe0
mov dword [ebp - 0xe4], eax
and eax, 0x1fffff
sub eax, 0x100
jb 0x476e8d
jmp 0x476e8f
jmp 0x476e10
mov ecx, str.shift_amount_is_greater_than_the_type_size
mov edx, 0x2a
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xe4]
mov byte [edx], bl
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xe8], ecx
mov eax, 1
cmp eax, ecx
jb 0x476eda
jmp 0x476edc
jmp 0x476e53
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xec]
inc ecx
mov dword [ebp - 0xf4], ecx
and eax, 0x1fffc0
shr eax, 6
mov dword [ebp - 0xf0], eax
mov al, 1
test al, al
jne 0x476f09
jmp 0x476f0b
jmp 0x476eb1
mov edx, dword [ebp - 0xe8]
mov ecx, 1
call fcn.00401ee0
mov eax, dword [ebp - 0xf0]
and eax, 0x3f
or eax, 0x80
mov dword [ebp - 0xf8], eax
sub eax, 0x100
jb 0x476f67
jmp 0x476f69
jmp 0x476eec
mov ecx, str.shift_amount_is_greater_than_the_type_size
mov edx, 0x2a
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0xf4]
mov ebx, dword [ebp - 0xf8]
mov byte [edx], bl
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0xfc], ecx
mov eax, 2
cmp eax, ecx
jb 0x476fb7
jmp 0x476fb9
jmp 0x476f2d
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x100]
add ecx, 2
mov dword [ebp - 0x108], ecx
and eax, 0x3f
or eax, 0x80
mov dword [ebp - 0x104], eax
sub eax, 0x100
jb 0x476fdc
jmp 0x476fde
jmp 0x476f8b
mov edx, dword [ebp - 0xfc]
mov ecx, 2
call fcn.00401ee0
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x104]
mov byte [eax], cl
jmp 0x476b46
jmp 0x476fc9
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10c], ecx
xor eax, eax
cmp eax, ecx
jb 0x47704f
jmp 0x477051
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x118], ecx
shr eax, 0x12
and eax, 7
mov dword [ebp - 0x114], eax
mov al, 1
test al, al
jne 0x47707d
jmp 0x47707f
jmp 0x477029
mov edx, dword [ebp - 0x10c]
xor ecx, ecx
call fcn.00401ee0
mov eax, dword [ebp - 0x114]
or eax, 0xf0
mov dword [ebp - 0x11c], eax
and eax, 0x1fffff
sub eax, 0x100
jb 0x4770db
jmp 0x4770dd
jmp 0x47705e
mov ecx, str.shift_amount_is_greater_than_the_type_size
mov edx, 0x2a
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x11c]
mov byte [edx], bl
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x120], ecx
mov eax, 1
cmp eax, ecx
jb 0x477128
jmp 0x47712a
jmp 0x4770a1
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x124]
inc ecx
mov dword [ebp - 0x12c], ecx
and eax, 0x1ff000
shr eax, 0xc
mov dword [ebp - 0x128], eax
mov al, 1
test al, al
jne 0x477157
jmp 0x477159
jmp 0x4770ff
mov edx, dword [ebp - 0x120]
mov ecx, 1
call fcn.00401ee0
mov eax, dword [ebp - 0x128]
and eax, 0x3f
or eax, 0x80
mov dword [ebp - 0x130], eax
sub eax, 0x100
jb 0x4771b5
jmp 0x4771b7
jmp 0x47713a
mov ecx, str.shift_amount_is_greater_than_the_type_size
mov edx, 0x2a
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x130]
mov byte [edx], bl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x134], ecx
mov eax, 2
cmp eax, ecx
jb 0x477204
jmp 0x477206
jmp 0x47717b
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x138]
add ecx, 2
mov dword [ebp - 0x140], ecx
and eax, 0x1fffc0
shr eax, 6
mov dword [ebp - 0x13c], eax
mov al, 1
test al, al
jne 0x477233
jmp 0x477235
jmp 0x4771d9
mov edx, dword [ebp - 0x134]
mov ecx, 2
call fcn.00401ee0
mov eax, dword [ebp - 0x13c]
and eax, 0x3f
or eax, 0x80
mov dword [ebp - 0x144], eax
sub eax, 0x100
jb 0x477291
jmp 0x477293
jmp 0x477216
mov ecx, str.shift_amount_is_greater_than_the_type_size
mov edx, 0x2a
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x144]
mov byte [edx], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x148], ecx
mov eax, 3
cmp eax, ecx
jb 0x4772e1
jmp 0x4772e3
jmp 0x477257
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x14c]
add ecx, 3
mov dword [ebp - 0x154], ecx
and eax, 0x3f
or eax, 0x80
mov dword [ebp - 0x150], eax
sub eax, 0x100
jb 0x477306
jmp 0x477308
jmp 0x4772b5
mov edx, dword [ebp - 0x148]
mov ecx, 3
call fcn.00401ee0
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
mov byte [eax], cl
jmp 0x476b46
jmp 0x4772f3
mov ecx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
lea eax, [0x4dd364]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
nop
mov edi, 0x4a000005
add dword [eax], eax
add byte [edx + 1], cl
add byte [eax], al
dec edx
add dword [eax], eax
add byte [edx + 1], cl
add byte [eax], al
insb byte es:[edi], dx
add dword [eax], eax
add bl, bh
add dword [eax], eax
add byte [edi + 3], ch
add byte [eax], al
nop dword [eax]