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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov esi, ecx
mov edi, dword [ebp + 0x10]
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], edx
je 0x436b26
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
test byte [eax + 0xb], 1
jne 0x436b38
test byte [eax + 0x13], 1
jne 0x436b38
mov edx, dword [ecx + 0xec]
cmp edx, 0x110000
jne 0x436bdc
mov eax, dword [ecx + 0x128]
test eax, eax
je 0x436b5d
cmp dword [ecx + 0x12c], edi
jne 0x436b5d
push edi
push eax
push ebx
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x436c25
lea ecx, [esp + 0x50]
mov edx, ebx
push edi
call fcn.00551c40
add esp, 4
cmp dword [esp + 0x50], 1
je 0x437295
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
movzx edi, byte [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x50], eax
movzx eax, byte [ebp + 0x1c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x58], edx
mov edx, ebx
push eax
push edi
mov edi, dword [ebp + 0x14]
push edi
lea eax, [esp + 0x5c]
push eax
call fcn.004382e0
add esp, 0x10
mov ecx, edi
mov edx, ebx
call fcn.00419840
mov edi, 2
test al, al
je 0x437268
movsd xmm0, qword [ebx]
mov edi, 1
movsd qword [esi + 8], xmm0
jmp 0x437268
xor ecx, ecx
mov ebx, 1
cmp edx, 0x80
mov dword [esp + 0x3c], esi
mov dword [esp + 0x90], edx
jae 0x436c01
mov eax, edx
xor esi, esi
xor edx, edx
jmp 0x436c8c
mov eax, edx
cmp edx, 0x800
jae 0x436c2f
shr eax, 6
and edx, 0x3f
mov ebx, 2
xor esi, esi
or eax, 0xc0
or edx, 0x80
jmp 0x436c8c
mov edi, 2
jmp 0x437268
cmp edx, 0x10000
jae 0x436c57
mov esi, edx
shr edx, 6
shr eax, 0xc
mov ebx, 3
and edx, 0x3f
and esi, 0x3f
or eax, 0xe0
or edx, 0x80
jmp 0x436c86
mov ecx, edx
shr edx, 0xc
shr eax, 0x12
mov ebx, 4
mov esi, ecx
and ecx, 0x3f
and edx, 0x3f
or eax, 0xf0
shr esi, 6
shl ecx, 0x18
or edx, 0x80
and esi, 0x3f
or ecx, 0x80000000
or esi, 0x80
shl edx, 8
movzx eax, al
shl esi, 0x10
or edx, ecx
mov ecx, dword [ebp + 8]
or eax, edx
or eax, esi
mov edx, dword [ecx + 0x128]
test edx, edx
mov dword [esp + 0x2c], edx
je 0x436db0
mov esi, dword [0x6d6b64]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x12c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov eax, esi
xor ebx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
mov dword [esp + 4], ecx
mov dword [esp + 0x24], 0
jmp 0x436d17
lea ecx, [esp + 0x1c]
mov edx, ebx
call fcn.00415b20
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov dword [eax + ebx*8], edi
mov dword [eax + ebx*8 + 4], esi
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 8]
inc ebx
mov dword [esp + 0x24], ebx
test edx, edx
je 0x436da3
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x50]
push eax
push dword [esp + 0x10]
call fcn.0044e2c0
add esp, 8
mov edi, dword [esp + 0x50]
test edi, edi
je 0x436d60
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
test edi, edi
jne 0x436d74
jmp 0x436da3
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov dword [esp + 8], 0
test edi, edi
je 0x436da3
cmp esi, dword [esp + 4]
jne 0x436d90
mov esi, dword [esp + 4]
push esi
push dword [esp + 0x30]
push edi
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x436da3
cmp ebx, dword [esp + 0x20]
je 0x436cf0
mov eax, dword [esp + 0x18]
jmp 0x436d03
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x436ef2
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea esi, [esp + 0x24]
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
push esi
push edi
call fcn.0044e2c0
add esp, 8
mov esi, dword [esp + 0x50]
test esi, esi
je 0x437161
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
test esi, esi
je 0x437179
mov eax, dword [0x6f1130]
test eax, eax
jne 0x436e1b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4372c4
mov dword [0x6f1130], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4372c4
mov dword [eax], esi
mov dword [eax + 4], ebx
mov edi, eax
mov ebx, 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 1
movsd xmm0, qword [esp + 0x1c]
movsd xmm1, qword [esp + 0x24]
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 8], xmm0
jmp 0x436e96
mov esi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 8], 0
test esi, esi
je 0x436eea
cmp ebx, dword [esp + 0x48]
je 0x436ed5
mov dword [edi + ebx*8], esi
mov dword [edi + ebx*8 + 4], edx
inc ebx
mov dword [esp + 0x4c], ebx
mov edx, dword [esp + 8]
test edx, edx
je 0x436eea
lea eax, [esp + 0x10]
lea ecx, [esp + 0x50]
push eax
push dword [esp + 0x10]
call fcn.0044e2c0
add esp, 8
mov esi, dword [esp + 0x50]
test esi, esi
je 0x436e70
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x436e84
jmp 0x436eea
mov edi, edx
lea ecx, [esp + 0x44]
mov edx, ebx
call fcn.00416040
mov edx, edi
mov edi, dword [esp + 0x44]
jmp 0x436e8a
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x38], eax
lea eax, [eax + ebx*8]
mov dword [esp + 0x40], eax
jne 0x43705a
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
lea esi, [esp + 0x50]
mov ecx, esi
mov ebx, dword [eax]
mov edi, dword [eax + 4]
push edi
push ebx
call fcn.0041a480
add esp, 8
mov ecx, esi
call fcn.0042cd70
mov edx, dword [eax + 0x1c]
mov esi, eax
cmp edx, dword [eax + 0x18]
jne 0x436f44
mov ecx, esi
add ecx, 0x14
call fcn.005948c0
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov dword [esp + 4], esi
mov esi, dword [0x6d6b64]
lea ecx, [edx + edx*2]
inc edx
mov dword [eax + ecx*4], esi
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov eax, dword [esp + 4]
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov ecx, dword [eax + 0x134]
test ecx, ecx
je 0x43705a
mov edx, dword [eax + 0x12c]
imul eax, ecx, 0x38
mov ecx, edx
add eax, edx
mov dword [esp + 0x2c], eax
jmp 0x436fb0
mov eax, dword [esp + 4]
cmp dword [esp + 0x2c], eax
mov ecx, eax
je 0x43705a
lea eax, [ecx + 0x38]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx + 0x18]
mov dword [esp + 4], eax
shl ecx, 3
nop word cs:[eax + eax]
nop
test ecx, ecx
je 0x436fa0
mov esi, dword [edx]
mov eax, dword [edx + 4]
add ecx, 0xfffffff8
add edx, 8
xor esi, ebx
xor eax, edi
or eax, esi
jne 0x436fd0
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x50]
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.0041a480
add esp, 8
mov ecx, esi
call fcn.0042cd70
mov edx, dword [eax + 0x1c]
mov esi, eax
cmp edx, dword [eax + 0x18]
jne 0x43701f
mov ecx, esi
add ecx, 0x14
call fcn.005948c0
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], esi
mov esi, dword [0x6d6b64]
lea ecx, [edx + edx*2]
inc edx
mov dword [eax + ecx*4], esi
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x2c]
mov ecx, eax
jne 0x436fb0
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x38]
je 0x4370c9
movzx edi, byte [ebp + 0x18]
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0x50]
mov edx, dword [ebx]
test edx, edx
je 0x4370c9
mov ecx, esi
push dword [ebx + 4]
call fcn.00551c40
add esp, 4
cmp dword [esp + 0x50], 1
je 0x437272
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4370c9
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 8]
push 1
push edi
push dword [ebp + 0x14]
push esi
call fcn.004382e0
add esp, 0x10
add ebx, 8
cmp ebx, dword [esp + 0x40]
jne 0x437070
test dword [esp + 0x34], 0x1fffffff
je 0x4370e4
push dword [esp + 0x38]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [esp + 0x90]
mov edx, dword [ebp + 0x10]
xor eax, eax
mov edi, 1
cmp esi, 0x80
jae 0x437108
mov ebx, esi
xor esi, esi
xor ecx, ecx
jmp 0x4371c2
mov ebx, esi
cmp esi, 0x800
jae 0x437132
and esi, 0x3f
shr ebx, 6
mov edi, 2
or esi, 0x80
or ebx, 0xc0
mov ecx, esi
xor esi, esi
jmp 0x4371c2
cmp esi, 0x10000
jae 0x43718d
mov ecx, esi
shr ebx, 0xc
and esi, 0x3f
mov edi, 3
shr ecx, 6
or ebx, 0xe0
or esi, 0x80
and ecx, 0x3f
or ecx, 0x80
jmp 0x4371c2
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test esi, esi
jne 0x436e00
mov eax, dword [0x6d6b64]
xor ebx, ebx
mov dword [esp + 0x34], 0
jmp 0x436ef6
mov ecx, esi
mov eax, esi
shr esi, 6
shr ebx, 0x12
mov edi, 4
shr ecx, 0xc
and eax, 0x3f
and esi, 0x3f
or ebx, 0xf0
and ecx, 0x3f
shl eax, 0x18
or esi, 0x80
or ecx, 0x80
or eax, 0x80000000
shl ecx, 8
shl esi, 0x10
mov dword [esp + 8], edi
or ecx, eax
movzx eax, bl
or eax, ecx
or eax, esi
cmp edx, 0x40
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
jae 0x4371f3
mov ecx, dword [ebp + 0xc]
push edi
push eax
call fcn.00533a00
add esp, 8
mov esi, eax
jmp 0x437239
lea esi, [esp + 0x50]
mov ebx, edx
mov edx, 1
mov ecx, esi
push edi
push eax
call fcn.00533320
add esp, 8
mov edx, dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.005331e0
add esp, 4
cmp dword [esp + 0x70], 0
mov esi, eax
je 0x437239
cmp dword [esp + 0x78], 0
je 0x437239
push dword [esp + 0x74]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [ebp + 8]
mov edi, 2
cmp esi, 1
jne 0x43724c
mov esi, dword [esp + 0x3c]
jmp 0x437268
test byte [ebx + 0x2d], 2
mov esi, dword [esp + 0x3c]
jne 0x437268
mov ecx, dword [ebp + 0x14]
mov edx, ebx
call fcn.00419840
test al, al
jne 0x436bc9
mov dword [esi], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esp + 0x54]
mov ecx, str.invalid_raw_bytesbyte_index__is_not_a_valid_boundary__it_is_inside_U__bytes
mov edx, 0x11
movsd qword [esp + 0x50], xmm0
push 0x60aa3c
push 0x60aa74
push esi
jmp 0x4372ba
movsd xmm0, qword [esp + 0x54]
mov ecx, str.invalid_raw_bytesbyte_index__is_not_a_valid_boundary__it_is_inside_U__bytes
mov edx, 0x11
movsd qword [esp + 0x50], xmm0
push 0x60aa3c
push 0x60aa74
lea eax, [esp + 0x58]
push eax
call fcn.0045d480
add esp, 0xc
ud2
mov ecx, 8
mov edx, 4
call fcn.0040a640
ud2