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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x140
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edi, dword [0x4de47c]
mov edi, dword [edi]
xor edi, ebp
mov dword [esp + 0x13c], edi
mov edi, esi
mov dword [esp + 0x88], edi
mov edi, edx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xdc], eax
jmp 0x477422
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0x100]
mov dword [esp], eax
call fcn.0047d7e0
mov eax, dword [esp + 0x100]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0xfc], eax
jmp 0x4776a7
mov eax, dword [esp + 0xdc]
mov eax, dword [esp + 0xe0]
cmp eax, 8
jae 0x477439
jmp 0x47745a
jmp 0x477422
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x78], ecx
mov eax, 8
cmp eax, ecx
jbe 0x4774bf
jmp 0x4774c1
jmp 0x4773d6
jmp 0x477437
mov eax, dword [esp + 0x74]
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0xa0], xmm0
mov ecx, 0x7f
call fcn.00464550
movaps xmm0, xmmword [esp + 0x60]
mov cx, ax
mov ax, cx
movd xmm1, eax
pshuflw xmm1, xmm1, 0
pshufd xmm1, xmm1, 0
movaps xmmword [esp + 0xb0], xmm1
por xmm0, xmm1
pcmpeqw xmm0, xmm1
packsswb xmm0, xmm1
pmovmskb eax, xmm0
not eax
cmp al, 0
jne 0x47753e
jmp 0x477543
jmp 0x477461
mov edx, dword [esp + 0x78]
mov ecx, 8
call fcn.00401ee0
movaps xmm0, xmmword [esp + 0x60]
call fcn.00464290
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
movaps xmm1, xmmword [0x4aa0b0]
pand xmm0, xmm1
packuswb xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movlpd qword [esp + 0xc8], xmm0
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x54], ecx
add edx, eax
mov dword [esp + 0x58], edx
add eax, 8
mov dword [esp + 0x5c], eax
cmp eax, ecx
jbe 0x47757f
jmp 0x477581
jmp 0x4773d6
jmp 0x4774cf
mov eax, dword [esp + 0x58]
movaps xmm0, xmmword [esp + 0x40]
movlpd qword [esp + 0xec], xmm0
mov ecx, dword [esp + 0xec]
mov dword [eax], ecx
mov ecx, dword [esp + 0xf0]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0xd8]
add eax, 8
mov dword [esp + 0x3c], eax
setb al
jb 0x47758e
jmp 0x4775b1
jmp 0x477545
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
call fcn.00401ee0
lea ecx, [0x4aa18c]
mov edx, 0x10
xor eax, eax
lea eax, [0x4aa1a0]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x34], ecx
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, 8
cmp eax, ecx
jbe 0x4775f3
jmp 0x4775f5
mov eax, dword [esp + 0x34]
mov ecx, eax
sub ecx, 8
mov dword [esp + 0x30], ecx
cmp eax, eax
jbe 0x477612
jmp 0x477614
jmp 0x4775e0
mov edx, dword [esp + 0x34]
mov ecx, 8
call fcn.00401eb0
mov ecx, dword [esp + 0x34]
mov eax, 8
cmp eax, ecx
jbe 0x47763a
jmp 0x47763c
jmp 0x477603
mov edx, dword [esp + 0x34]
mov ecx, edx
call fcn.00401ee0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xdc], eax
jmp 0x47745f
jmp 0x47761f
mov edx, dword [esp + 0x34]
mov ecx, 8
call fcn.00401ee0
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0xd8]
mov word [esp + 0x138], 0
mov dword [esp + 0x134], ecx
mov ecx, dword [esp + 0x134]
mov dword [eax], ecx
mov ecx, dword [esp + 0x138]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x13c]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x477692
jmp 0x477697
call fcn.004a85b0
mov eax, dword [esp + 0x84]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
jmp 0x47764a
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x10c]
lea eax, [esp + 0xf4]
mov dword [esp], eax
call fcn.0047d860
cmp word [esp + 0x114], 0
jne 0x4776d0
jmp 0x47772b
jmp 0x4776a7
mov ecx, dword [esp + 0x7c]
mov ax, word [esp + 0x114]
mov word [esp + 0x11c], ax
call fcn.00401c30
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x118]
mov dword [eax], ecx
mov ecx, dword [esp + 0x11c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x13c]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x477692
jmp 0x47771d
mov eax, dword [esp + 0x84]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x124], eax
cmp byte [esp + 0x124], 0
je 0x4777c4
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x120]
mov dword [esp + 0x1c], edx
mov si, dx
mov word [esp + 0xd4], si
shr edx, 0x10
and edx, 0x1f
mov byte [esp + 0xd6], dl
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x28], ecx
add edx, eax
mov dword [esp + 0x2c], edx
cmp eax, ecx
jbe 0x4777df
jmp 0x4777e1
jmp 0x4776a5
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x18], ecx
cmp eax, eax
jbe 0x4777fc
jmp 0x4777fe
jmp 0x4777c9
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
call fcn.00401eb0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jbe 0x47783c
jmp 0x47783e
jmp 0x4777ee
mov edx, dword [esp + 0x28]
mov ecx, edx
call fcn.00401ee0
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov eax, esp
mov dword [eax + 8], edi
mov dword [eax + 4], esi
mov dword [eax], ecx
lea ecx, [esp + 0x130]
call fcn.004666a0
cmp word [esp + 0x130], 0
je 0x477863
jmp 0x477871
jmp 0x477809
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
call fcn.00401ee0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x14], eax
setb al
jb 0x4778d7
jmp 0x4778fa
movzx eax, byte [esp + 0x132]
mov dword [esp + 0x10], eax
jmp 0x47784b
mov ax, word [esp + 0x130]
mov word [esp + 0xe], ax
sub ax, 0x48
je 0x4778c6
jmp 0x477886
mov ax, word [esp + 0xe]
sub ax, 0x49
je 0x4778b5
jmp 0x477893
mov ecx, str.switch_on_corrupt_value
mov edx, 0x17
xor eax, eax
lea eax, [0x4dd788]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov ax, word [esp + 0xe]
mov ecx, dword [esp + 0x7c]
movzx edx, ax
call fcn.0044e1d0
mov ax, word [esp + 0xe]
mov ecx, dword [esp + 0x7c]
movzx edx, ax
call fcn.0044e1d0
lea ecx, [0x4aa18c]
mov edx, 0x10
xor eax, eax
lea eax, [0x4aa1a0]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00401e40
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd8], eax
jmp 0x4776ce