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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
cmp word [ebp + 0x10], 0
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov eax, dword [edi]
mov dword [esp + 0x5c], edx
mov eax, dword [eax]
mov dword [esp + 0x18], edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x7c], eax
movlpd qword [esp + 0x80], xmm0
je 0x478b19
test byte [eax + 0x3c], 0x80
je 0x478b19
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [edx]
mov dword [esp + 0x8c], eax
cmp eax, 0x3f
ja 0x478b11
movzx ecx, ax
xor edx, edx
mov eax, ecx
bts edx, eax
xor esi, esi
cmp eax, 0x20
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x50], xmm0
mov byte [esp + 0x30], 1
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
mov eax, dword [esp + 0x64]
cmovae esi, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x60]
add edx, 0xffffffff
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x54]
adc esi, 0xffffffff
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x74], eax
jmp 0x478bb0
mov eax, dword [esp + 0x6c]
cmp edx, eax
ja 0x479313
jb 0x478bcb
cmp esi, dword [esp + 0x88]
jae 0x47931a
movzx eax, word [ebp + 0x10]
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x4c], eax
jg 0x47930f
cmp dword [esp + 0x4c], 0
mov edi, dword [esp + 0x18]
jle 0x478c0a
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x74]
or ecx, dword [edi + 8]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x78]
or ecx, dword [edi + 0xc]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x4c], eax
jge 0x478c27
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x4c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + esi*4]
mov esi, dword [esp + 0x20]
jmp 0x478c2a
mov eax, dword [ebp + 0x14]
test dword [eax + 0x24], 0x400
mov dword [esp + 0x48], eax
jne 0x479309
mov edx, eax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
shl ecx, 4
mov edi, dword [ecx + eax + 0x38]
xor eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x50], eax
cmp dword [esp + 0x40], eax
jle 0x478da3
xor esi, esi
mov dword [esp + 0x28], esi
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
mov dword [esp + 0x60], ecx
and ecx, dword [esp + 0x20]
mov eax, edx
and eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
or ecx, eax
jne 0x478d83
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 4]
mov esi, dword [esi + eax]
test esi, esi
je 0x478cc7
mov eax, dword [esi + 4]
test eax, 0x1000
je 0x478cc7
test eax, 0x40000
je 0x478cc0
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
mov esi, dword [eax]
jmp 0x478cc3
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x478ca5
cmp byte [esi], 0x9a
jne 0x478d83
cmp dword [esi + 0x1c], edi
jne 0x478d83
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
push 0
push 0x82
not eax
not ecx
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push eax
add ecx, 0x148
mov edx, edi
call fcn.004710b0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x478d7f
test byte [edi + 0x12], 2
je 0x478d67
cmp word [esi + 0x20], 0
jl 0x478d67
mov eax, dword [esp + 0x5c]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call fcn.004398a0
test eax, eax
jne 0x478d3e
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov ecx, dword [eax]
call fcn.004398a0
test eax, eax
jne 0x478d58
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 8]
push dword [eax]
push esi
call fcn.0040ce60
add esp, 8
test eax, eax
jne 0x478d7f
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
or eax, dword [esp + 0x60]
or edx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x50]
add dword [esp + 0x28], 0x18
mov esi, dword [esp + 0x28]
inc eax
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x40]
jl 0x478c68
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x479081
test eax, 0x100
je 0x478dc7
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x60], edi
lea eax, [edi + 1]
jmp 0x478df5
mov edi, dword [edx + 0x1c]
mov dword [esp + 0x38], edi
test edi, edi
je 0x478b11
test byte [edi + 0x38], 4
jne 0x478b11
movzx eax, word [edi + 0x32]
cmp byte [edi + 0x36], 0
mov dword [esp + 0x60], eax
movzx eax, word [edi + 0x34]
setne byte [esp + 0x30]
xor cl, cl
movzx eax, ax
xor esi, esi
mov byte [esp + 0x2f], 0
mov byte [esp + 0x27], 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x80], eax
test eax, eax
jle 0x479081
lea ecx, [ecx]
movzx ecx, word [edx + 0x18]
cmp esi, ecx
jge 0x478e4f
cmp word [edx + 0x1a], 0
jne 0x478e4f
mov eax, dword [edx + 0x2c]
mov eax, dword [eax + esi*4]
movzx eax, word [eax + 0x12]
test al, 0x82
je 0x478e4f
test al, al
jns 0x479066
mov byte [esp + 0x30], 0
jmp 0x479066
test edi, edi
je 0x478e75
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], edx
mov al, byte [esi + eax]
mov byte [esp + 0x17], al
mov eax, dword [edi + 0xc]
movsx eax, word [eax + 0x24]
cmp edx, eax
jne 0x478e81
jmp 0x478e7a
mov byte [esp + 0x17], 0
or edx, 0xffffffff
mov dword [esp + 0x28], edx
cmp byte [esp + 0x30], 0
je 0x478eae
test edx, edx
js 0x478eae
cmp esi, ecx
jl 0x478eae
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*2]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 4]
xor esi, esi
cmp byte [eax + ecx*8 + 0x14], 0
movzx edx, dl
cmove edx, esi
mov dword [esp + 0x30], edx
xor esi, esi
mov byte [esp + 0x16], 1
xor edi, edi
jmp 0x478ec0
cmp esi, dword [esp + 0x40]
jge 0x478f97
xor edx, edx
mov eax, esi
bts edx, eax
xor ecx, ecx
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x20]
and ecx, dword [esp + 0x1c]
or edx, ecx
jne 0x478f88
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 4]
mov edx, dword [edi + eax]
mov eax, edx
test eax, eax
je 0x478f25
mov ecx, dword [eax + 4]
test ecx, 0x1000
je 0x478f25
test ecx, 0x40000
je 0x478f1e
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax]
jmp 0x478f21
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x478f01
mov ecx, dword [ebp + 0xc]
and ecx, 0x300
neg ecx
sbb cl, cl
and byte [esp + 0x16], cl
cmp byte [eax], 0x9a
jne 0x478f88
mov ecx, dword [esp + 0x3c]
cmp dword [eax + 0x1c], ecx
jne 0x478f88
movsx eax, word [eax + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jne 0x478f88
test ecx, ecx
js 0x478fc5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call fcn.004398a0
mov ecx, eax
test ecx, ecx
jne 0x478f6c
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
push dword [eax + edx*4]
push dword [ecx]
call fcn.0040ce60
add esp, 8
test eax, eax
je 0x478fc5
inc esi
add edi, 0x18
cmp byte [esp + 0x16], 0
jne 0x478ec0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x478faa
mov eax, dword [esp + 0x60]
movzx eax, ax
cmp ecx, eax
jge 0x478faf
mov byte [esp + 0x30], 0
mov ecx, dword [esp + 0x50]
test cl, cl
je 0x479081
mov byte [esp + 0x30], 1
jmp 0x47908c
mov eax, dword [esp + 0x18]
mov ecx, 0x100
test word [eax + 0x22], cx
jne 0x479029
cmp byte [esp + 0x2f], 0
mov eax, dword [esp + 0x5c]
lea ecx, [esi + esi*2]
mov eax, dword [eax + 4]
je 0x478ff5
mov dl, byte [esp + 0x17]
xor dl, byte [esp + 0x27]
cmp dl, byte [eax + ecx*8 + 0xc]
jne 0x478f97
jmp 0x479029
mov dh, byte [eax + ecx*8 + 0xc]
xor dh, byte [esp + 0x17]
mov byte [esp + 0x27], dh
je 0x479024
mov eax, dword [esp + 0x4c]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x2f], 1
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x28], 0
movzx edx, dl
mov eax, 1
cmovl edx, eax
xor eax, eax
bts eax, esi
xor ecx, ecx
cmp esi, 0x20
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x48]
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
mov esi, dword [esp + 0x34]
cmovae ecx, eax
or dword [esp + 0x20], eax
or dword [esp + 0x1c], ecx
inc esi
mov dword [esp + 0x34], esi
cmp esi, dword [esp + 0x80]
jge 0x478faf
mov edi, dword [esp + 0x38]
jmp 0x478e20
cmp byte [esp + 0x30], 0
je 0x4792ed
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
or ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x44]
or ecx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x60], eax
test ecx, ecx
jle 0x4792f1
xor edi, edi
mov dword [esp + 0x34], edi
mov edi, edi
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
mov dword [esp + 0x80], ecx
and ecx, dword [esp + 0x20]
mov eax, edx
and eax, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
or ecx, eax
jne 0x4792cf
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 4]
add ecx, 0x44
mov esi, dword [edi + eax]
mov dword [esp + 0x50], esi
test esi, esi
jne 0x479132
xorps xmm0, xmm0
movlpd qword [esp + 0xb0], xmm0
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x38], eax
jmp 0x4791f1
cmp byte [esi], 0x9a
jne 0x47918f
mov edx, dword [ecx]
xor eax, eax
test edx, edx
jle 0x47915c
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0x1c]
add ecx, 0x48
lea esp, [esp]
cmp dword [ecx], esi
je 0x479178
inc eax
add ecx, 4
cmp eax, edx
jl 0x479150
xorps xmm0, xmm0
movlpd qword [esp + 0xb8], xmm0
mov edi, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
jmp 0x4791d9
xor esi, esi
bts esi, eax
xor edi, edi
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
cmovae edi, esi
jmp 0x4791d9
mov edx, dword [esi + 0x10]
call fcn.00470710
mov ecx, dword [esp + 0x18]
mov edi, edx
mov edx, dword [esp + 0x50]
lea ecx, [ecx + 0x44]
mov edx, dword [edx + 0xc]
mov esi, eax
call fcn.00470710
mov ecx, dword [esp + 0x18]
or esi, eax
mov eax, dword [esp + 0x50]
or edi, edx
test dword [eax + 4], 0x800
mov edx, dword [eax + 0x14]
lea ecx, [ecx + 0x44]
je 0x4791d0
call fcn.00470810
jmp 0x4791d5
call fcn.004707a0
or esi, eax
or edi, edx
mov dword [esp + 0x38], esi
or esi, edi
mov dword [esp + 0x3c], edi
jne 0x479298
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa4], 1
mov dword [esp + 0x90], fcn.0043b250
mov dword [esp + 0x94], 0x43b340
test esi, esi
je 0x479298
lea eax, [esp + 0x90]
push esi
push eax
call fcn.0043b250
add esp, 8
test eax, eax
jne 0x47928e
test dword [esi + 4], 0x4000
jne 0x47928e
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x90]
call fcn.004373f0
test eax, eax
jne 0x47928e
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x90]
call fcn.004373f0
test eax, eax
jne 0x47928e
test dword [esi + 4], 0x800
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x90]
je 0x479289
call fcn.00437560
jmp 0x47928e
call fcn.00437470
cmp dword [esp + 0xa4], 0
je 0x4792cf
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
not ecx
and ecx, dword [esp + 0x38]
not eax
and eax, dword [esp + 0x3c]
or ecx, eax
jne 0x4792cf
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
inc eax
add edi, 0x18
mov dword [esp + 0x60], eax
mov dword [esp + 0x34], edi
cmp eax, ecx
jl 0x4790c0
jmp 0x4792f1
mov ecx, dword [esp + 0x40]
inc dword [esp + 0x4c]
cmp byte [esp + 0x30], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
je 0x47930f
jmp 0x478bb0
cmp byte [eax + 0x1d], 0
jne 0x479320
mov eax, dword [esp + 0x6c]
cmp esi, dword [esp + 0x88]
jne 0x47932d
cmp edx, eax
jne 0x47932d
mov al, byte [esp + 0x8c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x30], 0
jne 0x479393
lea eax, [ecx - 1]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x478b11
mov edi, dword [esp + 0x1c]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
mov eax, ecx
and eax, esi
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x479372
cmp esi, edx
je 0x479389
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + 0x44], eax
test eax, eax
jle 0x478b11
mov esi, dword [esp + 0x20]
jmp 0x479347
mov al, byte [esp + 0x44]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or al, 0xff
pop esi
mov esp, ebp
pop ebp
ret