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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5328d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xdc], 0
push ebx
mov ebx, ecx
push esi
mov esi, edx
push edi
cmp dword [ebx + 0x1808], 3
mov dword [ebp - 0x100], esi
je 0x47654f
mov edx, 0xc000042a
jmp 0x476afd
mov ecx, dword [ebx + 0x18b8]
push 4
push 0x84
call fcn.004460b0
mov edi, eax
test edi, edi
je 0x476582
push 0x78
push 0
push edi
call fcn.0050fee0
add esp, 0xc
xor eax, eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
mov dword [esi], edi
test edi, edi
jne 0x4765c8
mov esi, 0xc0000017
mov dword [ebp - 0xec], 0x41ff00
push esi
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xe8], 0x4214c4
mov dword [ebp - 0xe4], 0x10d8
mov dword [ebp - 0xe0], 0x4214f0
call fcn.004de872
mov eax, esi
jmp 0x476b07
mov ecx, ebx
call fcn.0046c72f
mov ecx, ebx
mov al, byte [eax + 0x3c]
mov byte [ebp - 0x101], al
call fcn.0046c72f
mov esi, dword [0x40b4d0]
lea edi, [ebp - 0x10]
push 9
pop edx
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xdc], eax
xor eax, eax
mov ecx, dword [0x40b4d4]
stosd dword es:[edi], eax
push 0xa
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xc4], esi
stosd dword es:[edi], eax
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x74], esi
stosw word es:[edi], ax
pop eax
push 4
pop edi
push 5
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xb8], eax
pop eax
push 7
pop esi
push 8
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x7c], edi
pop edi
push 0xa
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x70], ecx
mov ecx, 0x41fdd4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x58], esi
pop esi
push 0xb
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x50], ecx
pop ecx
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xbc], edx
mov edx, dword [0x4106a0]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x90], eax
mov eax, dword [0x4106a4]
mov dword [ebp - 0xc8], 0x421530
mov dword [ebp - 0xb4], 0x42153c
mov dword [ebp - 0xa0], 0x418c10
mov dword [ebp - 0x8c], 0x418bbc
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 3
mov dword [ebp - 0x78], 0x421548
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0x42154c
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0x421558
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebx + 0x18c4]
mov eax, dword [ebx + 0x18c8]
mov dword [ebp - 0x1c], 0xd
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 0x14], 0x421564
cmp ecx, eax
je 0x476745
sub eax, edi
cmp ecx, eax
jne 0x476739
mov dword [ebx + 0x18c8], eax
xor edi, edi
cmp dword [ebp - 0xdc], edi
mov dword [ebp - 0x118], edi
je 0x476a9e
lea eax, [ebx + 0x904]
push edi
mov ecx, eax
call fcn.00485fd0
mov esi, eax
cmp byte [esi + 0x48], 0
jne 0x476a84
cmp byte [esi + 0x49], 0
jne 0x476a84
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0xf8]
mov ecx, dword [esi + 0x14]
and dword [ebp - 0x108], 0
mov dword [ebp - 0xe0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov eax, dword [esi]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xe8], ecx
push eax
mov dword [ebp - 0xe4], ecx
lea ecx, [ebp - 0xe8]
push 0xa
call fcn.004dbdd2
test eax, eax
js 0x476b07
mov eax, dword [ebp - 0x108]
mov ecx, ebx
cmp eax, 0xa
jae 0x476a60
cmp byte [ebp + eax - 0x10], 0
jne 0x476a97
sub esp, 0x10
mov byte [ebp + eax - 0x10], 1
add esi, 0x20
lea eax, [ebp - 0x114]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004dbfad
test eax, eax
js 0x476b07
mov eax, dword [ebp - 0x108]
mov byte [ebp - 0xf9], 0
cmp eax, 9
ja case.default.0x476833
jmp dword [eax*4 + 0x476b17]
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0xf9]
push eax
lea eax, [ebp - 0x114]
mov ecx, ebx
push dword [esi]
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
mov eax, dword [esi]
mov byte [eax + 0x7c], 1
jmp 0x476a4f
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0xf9]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0xc
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
mov eax, dword [esi]
mov byte [eax + 0x7d], 1
jmp 0x476a4f
lea eax, [ebp - 0xf9]
push eax
mov eax, dword [ebp - 0x100]
mov eax, dword [eax]
add eax, 0x18
push eax
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
jmp 0x476a4f
lea eax, [ebp - 0xf9]
push eax
mov eax, dword [ebp - 0x100]
mov eax, dword [eax]
add eax, 0x24
jmp 0x4768bc
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0xf9]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x30
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
mov eax, dword [esi]
mov byte [eax + 0x7e], 1
jmp 0x476a4f
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0xf9]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x3c
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
mov eax, dword [esi]
mov byte [eax + 0x7f], 1
jmp 0x476a4f
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0xf9]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x48
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
mov eax, dword [esi]
mov byte [eax + 0x80], 1
jmp 0x476a4f
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0xf9]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x54
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
mov eax, dword [esi]
mov byte [eax + 0x81], 1
jmp 0x476a4f
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0xf9]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x60
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
mov eax, dword [esi]
mov byte [eax + 0x82], 1
jmp 0x476a4f
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0xf9]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x6c
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 0x18b8]
call fcn.004dc09c
test eax, eax
js 0x476b07
mov eax, dword [esi]
mov byte [eax + 0x83], 1
cmp byte [ebp - 0xf9], 0
je case.default.0x476833
mov edi, dword [ebp - 0x118]
jmp 0x476a84
test byte [ebx + 0x18c0], 2
je 0x476a97
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004dc108
test eax, eax
js 0x476b07
inc edi
cmp edi, dword [ebp - 0xdc]
jmp 0x47674d
mov edx, 0xc00000b9
jmp 0x476afb
mov edx, 0xc00000a4
jmp 0x476afd
cmp byte [ebp - 0xe], 0
je 0x476af6
cmp byte [ebp - 0xd], 0
je 0x476af6
test byte [ebx + 0x18c0], 2
mov ecx, ebx
je 0x476ac2
call fcn.004dc435
test eax, eax
js 0x476b07
mov al, 1
jmp 0x476acd
call fcn.004dc350
test eax, eax
js 0x476b07
xor eax, eax
cmp byte [ebp - 0x101], 0
jne 0x476af2
test al, al
jne 0x476af2
cmp dword [ebx + 0x1808], 4
mov ecx, ebx
jne 0x476545
call fcn.004dc350
test eax, eax
js 0x476b07
xor eax, eax
jmp 0x476b07
mov edx, 0xc0000225
mov ecx, ebx
call fcn.004dc331
test eax, eax
js 0x476b07
int3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050e82a
leave
ret