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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x2e8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
test eax, eax
je 0x46a704
mov edx, dword [ebp + 0x10]
movzx ecx, byte [ebp + 0x38]
mov esi, 0x260
mov ebx, 0x405
mov edx, dword [edx + 4]
mov byte [esp + 0xf], cl
lea ecx, [eax*4]
lea ecx, [ecx + ecx*4]
mov dword [esp + 8], edx
add edx, 0x10
jmp 0x46a658
add edx, 0x14
add ecx, 0xffffffec
je 0x46a6c0
movzx edi, word [edx - 0x10]
bt esi, edi
jb 0x46a650
cmp edi, 0xe
jne 0x46a676
movzx edi, word [edx]
add edi, 0xffffffea
cmp edi, 0xa
ja 0x46a676
bt ebx, edi
jb 0x46a650
mov esi, dword [ebp + 8]
mov word [esp + 0xc4], 4
mov dword [esp + 0x48], 0x80000001
mov dword [esp + 0x4c], 0x1a0001
xor eax, eax
lea edx, [esp + 0x48]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00456630
add esp, 4
mov eax, dword [esp + 4]
mov byte [esi + 0x249], 1
mov word [eax], 0x4309
jmp 0x46a750
mov ebx, dword [esp + 8]
lea esi, [eax + eax*4]
mov ecx, 0x3fdf
lea eax, [esi*4 - 0x14]
movzx edi, word [ebx]
lea edx, [ebx + 0x14]
bt ecx, edi
jb 0x46a700
jmp 0x46a6f0
add eax, 0xffffffec
mov ebx, edx
movzx edi, word [ebx]
lea edx, [ebx + 0x14]
bt ecx, edi
jb 0x46a700
cmp edi, 0xe
jne 0x46a8be
cmp word [ebx + 0x10], 0x20
je 0x46a704
test eax, eax
jne 0x46a6e0
mov esi, dword [ebp + 8]
mov word [esp + 0xc4], 4
mov dword [esp + 0x48], 0x80000001
mov dword [esp + 0x4c], 0x190001
xor eax, eax
lea edx, [esp + 0x48]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00456630
add esp, 4
mov eax, dword [esp + 4]
mov byte [esi + 0x249], 1
mov word [eax], 0x1f09
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0x40]
mov edi, dword [ebp + 0x2c]
mov al, 1
mov bl, 1
xor edx, edx
mov dword [esp + 4], eax
xor eax, eax
cmp eax, dword [ecx]
jo 0x46a76f
test dl, dl
jne 0x46a76f
call fcn.004674a0
test bl, bl
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x34]
je 0x46a7a8
mov eax, dword [esi]
test eax, eax
je 0x46a787
push dword [ebp + 0x30]
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x46a7a8
mov eax, dword [ebp + 0x30]
cmp dword [esi + 8], 9
jb 0x46a799
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [edi], 0
je 0x46a7be
push dword [edi + 4]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp byte [esp + 4], 0
je 0x46a7fb
mov eax, dword [ebp + 0x28]
mov esi, dword [eax]
test esi, esi
je 0x46a7fb
mov edi, dword [eax + 4]
mov eax, dword [edi]
test eax, eax
je 0x46a7dd
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x46a7fb
cmp dword [edi + 8], 9
jb 0x46a7ec
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0x24]
mov edi, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x46a810
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x46a82e
cmp dword [edi + 8], 9
jb 0x46a81f
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0x24]
test dword [eax], 0x7fffffff
jne 0x46a843
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
jne 0x46a865
jmp 0x46a85c
push dword [eax + 4]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
jne 0x46a865
test dword [eax + 4], 0x7fffffff
jne 0x46a8a4
xor eax, eax
cmp eax, dword [ebx + 8]
jo 0x46a88a
mov ecx, ebx
call fcn.00460570
cmp dword [ebx + 0x30], 0
je 0x46a88a
push dword [ebx + 0x34]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x24]
lock dec dword [eax]
jne 0x46a89c
lea ecx, [esp + 0x24]
call fcn.00464a30
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [eax + 8]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
cmp eax, dword [ebx + 8]
jno 0x46a86c
jmp 0x46a88a
push dword [ebp + 0x30]
mov eax, dword [ebp + 0x34]
call dword [eax + 0x18]
add esp, 4
cmp ax, word [ebx + 0x10]
mov edi, dword [esp + 8]
jne 0x46a9df
cmp ax, 0xa
jne 0x46a8e8
cmp dx, word [ebx + 0x12]
jne 0x46a9df
lea eax, [esi*4 - 0x14]
mov ecx, 0x3fbf
movzx esi, word [edi]
lea edx, [edi + 0x14]
bt ecx, esi
jb 0x46a921
jmp 0x46a911
add eax, 0xffffffec
mov edi, edx
movzx esi, word [edi]
lea edx, [edi + 0x14]
bt ecx, esi
jb 0x46a921
cmp esi, 0xe
jne 0x46b119
cmp word [edi + 0x10], 0x16
je 0x46a925
test eax, eax
jne 0x46a901
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
sete byte [esp + 0x18]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x48]
mov byte [eax + 0xc], 4
mov byte [ecx + 0x248], 0
mov ecx, 0x12
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [edx + 8], 0x80000000
xor edx, edx
cmp edx, dword [esp + 0x50]
jo 0x46a98e
lea ecx, [esp + 0x48]
call fcn.00460570
cmp dword [esp + 0x78], 0
je 0x46a98e
push dword [esp + 0x7c]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebp + 0x20]
mov eax, dword [esi + 0xc]
sub esp, 4
push 0
push dword [esi + 8]
call dword [eax + 0xc]
add esp, 0xc
cmp byte [esp + 0x18], 0
mov edi, edx
mov dword [esp + 8], eax
jne 0x46aa3f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x46a9ca
push dword [esp + 0x10]
call eax
mov ecx, dword [esp + 0x18]
add esp, 4
cmp dword [ecx + 4], 0
mov eax, dword [ebp + 8]
je 0x46aa42
cmp dword [ecx + 8], 9
jae 0x46aa29
mov eax, dword [esp + 0x10]
jmp 0x46aa30
mov esi, dword [ebp + 8]
mov word [esp + 0xc4], 4
mov dword [esp + 0x48], 0x80000001
mov dword [esp + 0x4c], 0xd0001
xor eax, eax
lea edx, [esp + 0x48]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00456630
add esp, 4
mov eax, dword [esp + 4]
mov byte [esi + 0x249], 1
mov word [eax], 0x4809
jmp 0x46a750
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x208], 1
jne 0x46aa55
mov dword [eax + 0x208], 2
lea eax, [esp + 0x48]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0x34]
call dword [eax + 0xc]
add esp, 0x10
movsd xmm0, qword [esp + 0x4c]
movsd xmm1, qword [esp + 0x54]
test byte [esp + 0x48], 1
movsd qword [esp + 0x28], xmm0
movsd qword [esp + 0x30], xmm1
je 0x46aaeb
movsd xmm0, qword [esp + 0x28]
mov eax, dword [esp + 4]
movsd xmm1, qword [esp + 0x30]
mov ebx, dword [esp + 8]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [edi]
test eax, eax
je 0x46aab4
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
mov ecx, dword [ebp + 0x40]
mov dl, 1
je 0x46abd5
cmp dword [edi + 8], 9
jb 0x46aacc
mov ebx, dword [ebx - 4]
mov esi, ecx
mov edi, dword [ebp + 0x2c]
push ebx
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
xor ebx, ebx
mov ecx, esi
mov dl, 1
jmp 0x46b0ff
mov eax, dword [esp + 8]
movsd xmm0, qword [esp + 0x28]
movsd xmm1, qword [esp + 0x30]
lea ecx, [esp + 0x114]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x168]
mov dword [esp + 0x4c], edi
movsd qword [esp + 0x170], xmm1
movsd qword [esp + 0x168], xmm0
mov dword [esp + 0x50], esi
push eax
call fcn.0046b350
add esp, 4
mov ecx, dword [ebp + 0x40]
mov dl, 1
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
neg eax
jo 0x46adc8
lea edi, [esp + 0x254]
push 0x90
mov esi, ecx
push ecx
push edi
call fcn.004ef180
add esp, 0xc
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x48]
mov edx, edi
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [ebp + 0x10]
push dword [esp + 0x128]
call fcn.0046b530
add esp, 0x10
mov eax, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x4c]
movsd xmm1, qword [esp + 0x54]
cmp eax, 0x80000001
movsd qword [esp + 0x120], xmm0
movsd qword [esp + 0x128], xmm1
jne 0x46abdf
movsd xmm0, qword [esp + 0x120]
mov eax, dword [esp + 4]
movsd xmm1, qword [esp + 0x128]
mov dword [esp + 8], 0
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x46b0e1
xor ebx, ebx
mov edi, dword [ebp + 0x2c]
jmp 0x46b0ff
movsd xmm1, qword [esp + 0x7c]
movsd xmm2, qword [esp + 0x74]
mov ecx, dword [esp + 0x8c]
movsd xmm0, qword [esp + 0x84]
mov edx, eax
neg edx
movsd qword [esp + 0x150], xmm1
movsd xmm1, qword [esp + 0x6c]
movsd qword [esp + 0x148], xmm2
movsd xmm2, qword [esp + 0x5c]
mov dword [esp + 0x160], ecx
mov cl, 4
movsd qword [esp + 0x158], xmm0
movsd qword [esp + 0x140], xmm1
movsd xmm1, qword [esp + 0x64]
movsd qword [esp + 0x130], xmm2
movsd qword [esp + 0x138], xmm1
jo 0x46adc0
movsd xmm1, qword [esp + 0x128]
mov dword [esp + 0x48], eax
movsd xmm0, qword [esp + 0x120]
movsd xmm2, qword [esp + 0x140]
movsd xmm3, qword [esp + 0x130]
mov eax, dword [esp + 0x160]
mov edx, dword [ebp + 0x3c]
lea ecx, [esp + 0x54]
movsd qword [esp + 0x54], xmm1
movsd xmm1, qword [esp + 0x138]
movsd qword [esp + 0x4c], xmm0
movsd qword [esp + 0x6c], xmm2
movsd xmm2, qword [esp + 0x150]
movsd qword [esp + 0x5c], xmm3
mov dword [esp + 0x8c], eax
movsd qword [esp + 0x64], xmm1
movsd xmm1, qword [esp + 0x148]
movsd qword [esp + 0x7c], xmm2
movsd qword [esp + 0x74], xmm1
movsd xmm1, qword [esp + 0x158]
movsd qword [esp + 0x84], xmm1
call fcn.00469a70
mov esi, dword [ebp + 0x24]
mov eax, dword [esp + 0x6c]
movsd xmm0, qword [esp + 0x64]
movsd xmm2, qword [esp + 0x54]
movsd xmm1, qword [esp + 0x5c]
mov ecx, esi
mov dword [esp + 0x40], eax
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0x28], xmm2
call fcn.0046c3c0
movsd xmm0, qword [esp + 0x38]
mov eax, dword [esp + 0x40]
movsd xmm1, qword [esp + 0x30]
mov ecx, dword [esp + 0x50]
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [esp + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x1c]
movsd qword [esi + 8], xmm1
movsd xmm1, qword [esp + 0x78]
mov dword [esp + 0x30], ecx
movsd qword [esi], xmm0
movsd xmm0, qword [esp + 0x88]
mov esi, dword [ebp + 0x2c]
movsd qword [eax + 8], xmm1
movsd qword [eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x80]
cmp dword [esi], 0
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [eax], xmm0
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 0x28], xmm0
je 0x46adad
push dword [esi + 4]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
mov cl, 3
mov dword [esi + 8], eax
movsd qword [esi], xmm0
mov eax, dword [ebp + 0xc]
xor edx, edx
mov byte [eax + 0x11], cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], edx
mov edi, dword [ecx + 0x7c]
mov eax, dword [ecx + 0x78]
mov ecx, dword [edi + 8]
dec ecx
and ecx, 0xfffffff8
lea esi, [eax + ecx + 8]
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x46ae0d
mov ecx, eax
movzx eax, byte [eax + 0x11]
movsd xmm0, qword [ecx + 1]
movsd xmm1, qword [ecx + 9]
mov byte [esp + 0x59], al
mov al, 1
movsd qword [esp + 0x51], xmm1
movsd qword [esp + 0x49], xmm0
jmp 0x46ae55
mov ecx, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ecx + 4]
mov eax, dword [ebp + 0x18]
jno 0x46ae29
mov ecx, eax
mov eax, dword [eax + 8]
mov edx, 0x80000000
mov ecx, dword [ecx + 0xc]
jmp 0x46ae47
mov edx, dword [eax + 8]
lea ecx, [esp + 0x48]
push dword [eax + 0xc]
call fcn.0040c940
add esp, 4
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x54], ecx
mov byte [esp + 0x48], al
movzx eax, word [ebx + 0x12]
push eax
push dword [ebx + 0x10]
lea eax, [esp + 0x50]
push eax
push esi
call dword [edi + 0x18]
add esp, 0x10
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x48]
mov edx, esi
call fcn.0046c420
movzx eax, byte [esp + 0x48]
cmp al, 0x16
jne 0x46b0c2
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x17c]
mov eax, dword [ecx + 0x18]
push dword [ecx + 0x14]
push edx
call dword [eax + 0xc]
add esp, 8
mov eax, dword [esp + 0x11c]
movsd xmm0, qword [esp + 0x114]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
movsd qword [esp + 0x48], xmm0
mov edi, dword [edx + 0x90]
movzx ecx, byte [eax + 0xc]
xor eax, eax
dec cl
cmp cl, 2
mov ecx, dword [edx + 0x8c]
mov edx, dword [edi + 8]
setb al
dec edx
and edx, 0xfffffff8
lea ebx, [ecx + edx + 8]
lea ecx, [esp + 0x1c0]
lea edx, [esp + 0x48]
push esi
push dword [ebp + 0x1c]
push edi
push ebx
push dword [ebp + 0x20]
lea edi, [esp + 0x190]
push edi
push eax
call fcn.0046c480
add esp, 0x1c
movzx eax, byte [esp + 0xf]
or al, byte [esi + 0x24c]
jne 0x46af39
mov word [esp + 0xc4], 4
mov dword [esp + 0x48], 0x80000003
lea edx, [esp + 0x48]
mov ecx, esi
push 0
call fcn.00456630
add esp, 4
mov esi, dword [ebp + 0x14]
lea edi, [esp + 0x58]
mov ecx, 0x12
mov edx, 0x168
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x10]
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x10c], eax
mov eax, dword [ebp + 0x1c]
movsd qword [esp + 0xfc], xmm0
movsd qword [esp + 0x104], xmm1
movsd xmm2, qword [ecx + 8]
movsd xmm0, qword [eax + 0x38]
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0xd8], xmm0
movsd xmm0, qword [eax + 0x30]
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [ecx]
movsd qword [esp + 0xd0], xmm0
movsd xmm0, qword [eax + 0x28]
movsd qword [esp + 0xc8], xmm0
movsd xmm0, qword [eax + 0x20]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0xb8], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0xb0], xmm0
movsd xmm0, qword [eax]
mov eax, dword [ecx + 0x18]
movsd qword [esp + 0xa0], xmm0
mov dword [esp + 0xf8], eax
mov eax, dword [ebp + 0x2c]
movsd xmm0, qword [ecx + 0x10]
movsd qword [esp + 0xe8], xmm2
movsd qword [esp + 0xe0], xmm1
xor ecx, ecx
movsd xmm3, qword [eax]
movsd xmm4, qword [eax + 8]
movsd qword [esp + 0xf0], xmm0
movsd qword [esp + 0x48], xmm3
movsd qword [esp + 0x50], xmm4
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x46b304
mov esi, eax
push 0xc8
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.004ef180
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc8], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0xcc], eax
mov eax, esi
add eax, 0xd0
push 0x94
lea ecx, [esp + 0x1c4]
push ecx
push eax
call fcn.004ef180
add esp, 0xc
neg dword [esp + 0x18]
mov eax, dword [esp + 4]
mov dword [eax + 4], esi
mov dword [eax + 8], 0x5bb3f8
mov byte [eax], 0x16
jo 0x46a89c
cmp byte [esp + 8], 0
je 0x46a89c
mov ecx, dword [ebp + 0x40]
call fcn.004674a0
jmp 0x46a89c
movsd xmm0, qword [esp + 0x49]
movsd xmm1, qword [esp + 0x50]
mov ecx, dword [esp + 4]
mov esi, dword [ebp + 0x40]
movsd qword [ecx + 8], xmm1
movsd qword [ecx + 1], xmm0
mov byte [ecx], al
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x118]
call fcn.0046caf0
mov edi, dword [ebp + 0x2c]
mov edx, dword [esp + 8]
xor ebx, ebx
mov ecx, esi
xor dl, 1
mov dword [esp + 4], 0
xor eax, eax
cmp eax, dword [ecx]
jno 0x46a766
jmp 0x46a76f
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
je 0x46b21f
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov al, 0x37
cmp ecx, dword [edx + 8]
jo 0x46b2af
movzx eax, word [edi + 2]
mov word [esp + 0x22], ax
mov eax, dword [ebp + 0x28]
mov esi, dword [eax + 8]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x3c]
mov eax, dword [edi + 0x1c]
push dword [edi + 0x18]
call dword [eax + 0x18]
add esp, 4
mov ecx, dword [ebp + 0x20]
mov byte [esp + 0x10], al
mov byte [esp + 0x18], dl
mov eax, dword [ecx + 0x1c]
push dword [ecx + 0x18]
call dword [eax + 0x18]
add esp, 4
mov ah, byte [esp + 0x10]
cmp ah, 7
sete cl
cmp byte [esp + 0x18], dl
setne dl
cmp ah, al
jne 0x46b231
and cl, dl
jne 0x46b231
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xc]
dec al
cmp al, 1
ja 0x46b1d0
movzx eax, word [edi + 0x28]
mov ecx, dword [ebp + 0x20]
cmp ax, word [ecx + 0x28]
jne 0x46b271
movzx eax, ax
cmp eax, 0x178
jne 0x46b1d0
movzx eax, word [edi + 0x2a]
cmp ax, word [ecx + 0x2a]
jne 0x46b271
cmp word [esp + 0x22], 0
je 0x46b2fb
mov esi, dword [ebp + 8]
mov word [esp + 0xc4], 4
mov dword [esp + 0x48], 0x80000001
mov dword [esp + 0x4c], 0xd0001
xor eax, eax
lea edx, [esp + 0x48]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00456630
add esp, 4
mov byte [esi + 0x249], 1
mov al, 0x30
jmp 0x46b2af
mov dword [esp + 0x10], 0
mov byte [esp + 0x18], 1
jmp 0x46a93c
mov esi, dword [ebp + 8]
mov word [esp + 0xc4], 4
mov dword [esp + 0x48], 0x80000001
mov dword [esp + 0x4c], 0xd0001
xor eax, eax
lea edx, [esp + 0x48]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00456630
add esp, 4
mov byte [esi + 0x249], 1
mov al, 0x2e
jmp 0x46b2af
mov esi, dword [ebp + 8]
mov word [esp + 0xc4], 4
mov dword [esp + 0x48], 0x80000001
mov dword [esp + 0x4c], 0xd0001
xor eax, eax
lea edx, [esp + 0x48]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00456630
add esp, 4
mov al, 0xb
mov byte [esi + 0x249], 1
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
mov byte [ecx], 9
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x46b2d1
push esi
call eax
mov ecx, dword [esp + 0x18]
add esp, 4
cmp dword [ecx + 4], 0
je 0x46b2ef
cmp dword [ecx + 8], 9
jb 0x46b2e0
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp + 0x40]
mov dl, 1
mov bl, 1
jmp 0x46abd7
mov edi, dword [esp + 0x14]
jmp 0x46aa3f
ud2