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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [edx + 0x8c]
mov dword [esp + 0x20], ecx
cmp dword [edx + 0x88], eax
je 0x404257
cmp dword [edx + 0x84], eax
mov esi, edx
je 0x404257
cmp dword [esi + 0x50], 2
jne 0x40423e
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov ebx, dword [esi + 8]
lea edx, [esi + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x5c], edx
lea edx, [esi + 0x14]
mov dword [esp + 0x54], edx
mov dword [esp + 0x28], ecx
lea ecx, [esi + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x58], ecx
lea ecx, [esi + 0x18]
mov dword [esp + 0x50], ecx
nop word [eax + eax]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
cmp ebx, 3
mov dword [esi + 8], 3
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x54]
jne 0x403d36
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x44]
je 0x403d70
lea ecx, [eax + 0x38]
lea edx, [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esi + 0x40], ecx
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 4], ecx
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
lea ecx, [eax + 0x14]
add eax, 0x18
movsd xmm0, qword [eax + 0x18]
mov edx, dword [edx]
mov edi, dword [edi]
mov ecx, dword [ecx]
cmp ebx, 2
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0x38], xmm1
movsd qword [esp + 0x30], xmm0
jne 0x40461b
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x9c]
cmp ecx, edx
jae 0x404766
mov eax, dword [esi + 0x98]
shl ecx, 5
mov edi, dword [esi + 0x80]
mov edx, dword [eax + ecx + 0xc]
cmp edx, edi
jb 0x4047d1
mov ebx, edi
shl ebx, 4
js 0x4047ca
test edi, edi
mov dword [esp + 0x1c], edi
je 0x403ed0
mov esi, dword [eax + ecx + 4]
mov eax, dword [0x44210c]
test eax, eax
jne 0x403dd5
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4047e2
mov dword [0x44210c], eax
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4047e2
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
add esi, 0x14
mov ebx, dword [esp + 0x10]
lea ecx, [eax - 1]
mov dword [esp + 0x34], eax
lea eax, [eax*8]
mov dword [esp + 0x38], 0
and ecx, 0x1fffffff
lea edx, [eax + eax*2]
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x403e3f
mov ecx, dword [esi - 4]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add esi, 0x18
add ebx, 0x10
add edx, 0xffffffe8
je 0x403ec0
mov edi, dword [esi - 8]
cmp dword [esi - 0xc], 1
jne 0x403e20
mov ecx, dword [esi]
mov dword [esp + 0x14], edi
test ecx, ecx
js 0x4047ca
mov edi, 1
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
je 0x403e9b
mov eax, dword [0x44210c]
test eax, eax
jne 0x403e84
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, dword [esp + 4]
test eax, eax
je 0x40482e
mov dword [0x44210c], eax
push ecx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ecx, dword [esp + 4]
mov edi, eax
test eax, eax
je 0x40482e
push ecx
push dword [esp + 0x18]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x10]
add esp, 0xc
mov edx, dword [esp + 8]
mov eax, 1
jmp 0x403e25
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
jmp 0x403eef
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], 0
xor eax, eax
mov ebx, 4
mov dword [esp + 0x10], 4
mov ecx, dword [esi + 0x94]
lea edx, [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], eax
call fcn.004010c0
test eax, eax
mov dword [esp + 4], 0
je 0x403f70
mov edx, dword [eax + 8]
test edx, edx
je 0x40402b
mov eax, dword [eax]
mov esi, dword [esi + 0x84]
mov dword [esp + 0x24], ebx
xor ebx, ebx
mov ecx, edx
mov dword [esp + 8], edx
jmp 0x403f4f
mov ebx, edi
mov edi, edx
inc ebx
mov ecx, edi
mov edx, edi
mov edi, ebx
sub ecx, ebx
jbe 0x403f5c
shr ecx, 1
mov edi, ecx
add edi, ebx
cmp dword [eax + edi*4], esi
jb 0x403f40
jne 0x403f45
cmp edi, dword [esp + 8]
jne 0x403f75
mov dword [esp + 4], 0
jmp 0x404027
jmp 0x40402b
mov ebx, dword [esp + 0x24]
jae 0x4047a6
mov ecx, dword [eax + edi*4]
mov edx, dword [esp + 8]
mov dword [esp + 4], 0
mov dword [esp + 0x14], ecx
cmp ecx, esi
mov ecx, dword [esp + 0x18]
jb 0x40402b
mov esi, dword [ecx + 0x98]
shl edx, 2
mov ebx, dword [ecx + 0x8c]
mov dword [esp + 4], esi
lea esi, [eax + edi*4 + 4]
shl edi, 2
sub edx, edi
mov edi, dword [ecx + 0x9c]
mov ecx, dword [esp + 0x14]
add edx, 0xfffffffc
mov dword [esp + 8], edi
mov edi, edx
cmp ebx, ecx
jbe 0x404006
jmp 0x403fec
mov ecx, dword [esi]
add esi, 4
add edi, 0xfffffffc
cmp ebx, ecx
jbe 0x404006
cmp dword [esp + 8], ecx
jbe 0x404753
mov eax, dword [esp + 4]
mov edx, ecx
shl edx, 5
cmp dword [eax + edx + 0x10], 0
jne 0x404012
test edi, edi
jne 0x403fe0
mov dword [esp + 0x14], ecx
xor ecx, ecx
jmp 0x40401c
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 4]
add ecx, edx
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x404080
mov esi, dword [esp + 0x10]
shl eax, 4
add ebx, eax
jmp 0x404054
cmp esi, ebx
je 0x404080
mov eax, esi
add esi, 0x10
cmp dword [eax], 0
je 0x404050
cmp dword [eax + 8], 0
je 0x404050
mov eax, dword [eax + 4]
test eax, eax
je 0x404050
push eax
push 0
push dword [0x44210c]
call sub.KERNEL32.dll_HeapFree
jmp 0x404050
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4040a4
mov ecx, 0x10
mul ecx
test eax, eax
je 0x4040a4
push dword [esp + 0x10]
push 0
push dword [0x44210c]
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 4], 0
mov esi, dword [esp + 0x18]
je 0x404257
mov dword [esi + 0x84], edi
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x9c]
cmp ecx, edi
je 0x4041b8
cmp ecx, edx
jae 0x404786
cmp edi, edx
jae 0x404795
mov dword [esp + 8], edx
mov edx, dword [esi + 0x98]
shl ecx, 5
shl edi, 5
mov dword [esp + 0x1c], edi
mov eax, dword [edx + ecx + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [edx + edi + 0xc]
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
jne 0x404190
mov eax, dword [esp + 0xc]
mov esi, dword [eax + ecx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
lea edi, [eax + 1]
mov eax, 0x14
jmp 0x404156
add edx, eax
mov ecx, dword [ecx]
cmp ecx, dword [edx]
mov edx, dword [esp + 4]
jne 0x404190
lea ebx, [eax + 0x18]
push ecx
push dword [edx + eax - 8]
push dword [esi + eax - 8]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
mov eax, ebx
jne 0x404190
dec edi
je 0x404265
cmp dword [esi + eax - 0xc], 1
lea edx, [esi + eax]
lea ecx, [esi + eax - 4]
cmove ecx, edx
mov edx, dword [esp + 4]
cmp dword [edx + eax - 0xc], 1
je 0x404130
lea edx, [edx + eax - 4]
mov ecx, dword [ecx]
cmp ecx, dword [edx]
mov edx, dword [esp + 4]
je 0x40413c
nop word cs:[eax + eax]
nop
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0xa0]
cmp byte [eax + 0x1d], 0
jne 0x4041b8
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x10]
jae 0x4041b8
mov dword [esi + 0x88], edi
cmp edi, edx
jae 0x404775
mov eax, dword [esi + 0x98]
shl edi, 5
mov ecx, dword [esi + 0x80]
mov edx, dword [eax + edi + 0xc]
cmp ecx, edx
jne 0x4044d8
cmp byte [eax + edi + 0x1c], 0
jne 0x404562
mov ecx, dword [eax + edi + 0x14]
mov esi, dword [eax + edi + 0x10]
mov dword [esp + 4], ecx
mov ecx, dword [eax + edi + 0x18]
test esi, esi
mov dword [eax + edi + 0x10], 0
je 0x4047f0
mov edi, dword [esp + 0x18]
imul ebx, ecx, 0x38
add ebx, esi
mov ecx, edi
call fcn.00401f70
mov eax, dword [esp + 4]
mov dword [edi + 8], 3
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], esi
mov dword [edi + 0x44], ebx
mov esi, edi
mov ebx, 3
cmp dword [edi + 0x50], 2
je 0x403ce0
mov ecx, str.assertion_failed:_self.next_value.is_none__
mov edx, 0x2b
push 0x43861c
call fcn.004363a0
add esp, 4
ud2
mov eax, dword [esp + 0x20]
mov word [eax], 0
jmp 0x40474b
mov eax, dword [esp + 0x10]
mov edi, eax
shl edi, 4
js 0x4047ca
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test eax, eax
mov ebx, dword [ecx + edx]
je 0x40441a
mov eax, dword [0x44210c]
test eax, eax
jne 0x4042a6
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x40481a
mov dword [0x44210c], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x40481a
mov esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0xc], esi
lea ecx, [eax - 1]
lea eax, [eax*8]
add ebx, 0x14
and ecx, 0x1fffffff
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], ecx
inc ecx
mov dword [esp + 0x28], ecx
jmp 0x40430b
mov ecx, dword [ebx - 4]
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
add ebx, 0x18
add esi, 0x10
add eax, 0xffffffe8
je 0x404387
mov edi, dword [ebx - 8]
cmp dword [ebx - 0xc], 1
jne 0x4042f0
mov ecx, dword [ebx]
mov dword [esp + 0x14], edi
test ecx, ecx
js 0x4047ca
mov dword [esp + 4], ebx
mov edi, 1
mov ebx, ecx
mov dword [esp + 8], eax
je 0x404365
mov eax, dword [0x44210c]
test eax, eax
jne 0x404350
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, ebx
test eax, eax
je 0x40482e
mov dword [0x44210c], eax
push ecx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ecx, ebx
mov edi, eax
test eax, eax
je 0x40482e
push ecx
push dword [esp + 0x18]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, ebx
add esp, 0xc
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
mov edx, 1
jmp 0x4042f5
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x60]
mov edx, esi
push dword [esp + 0x28]
call fcn.004035b0
mov ecx, esi
add esp, 4
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
xor esi, esi
shl edx, 4
add edx, 0x10
jmp 0x4043c7
add esi, 0x10
cmp edx, esi
je 0x4043f4
cmp dword [ecx + esi], 0
je 0x4043c0
cmp dword [ecx + esi + 8], 0
je 0x4043c0
mov eax, dword [ecx + esi + 4]
test eax, eax
je 0x4043c0
push eax
push 0
push dword [0x44210c]
mov edi, edx
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0xc]
mov edx, edi
jmp 0x4043c0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, 0x10
mul ecx
test eax, eax
je 0x40442d
push dword [esp + 0xc]
push 0
push dword [0x44210c]
call sub.KERNEL32.dll_HeapFree
jmp 0x40442d
lea ecx, [esp + 0x60]
mov edx, 4
push 0
call fcn.004035b0
add esp, 4
movsd xmm0, qword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov edi, dword [esi + 0xa0]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], eax
mov eax, dword [0x44210c]
test eax, eax
jne 0x404462
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x404809
mov dword [0x44210c], eax
push 0x44
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x404809
mov dword [eax], 0xc
mov esi, eax
movsd xmm0, qword [esp + 0x30]
movsd qword [eax + 4], xmm0
mov eax, dword [esp + 0x38]
mov dword [esi + 0xc], eax
movsd xmm0, qword [esp + 0x6c]
movsd qword [esi + 0x10], xmm0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 4
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push ebx
jmp 0x4045f7
jae 0x4047bb
mov eax, dword [eax + edi + 4]
lea ecx, [ecx + ecx*2]
cmp dword [eax + ecx*8 + 8], 1
jne 0x404742
mov esi, dword [eax + ecx*8 + 0x14]
test esi, esi
js 0x4047ca
mov ebx, dword [eax + ecx*8 + 0xc]
je 0x40464d
mov eax, dword [0x44210c]
test eax, eax
jne 0x404521
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x404828
mov dword [0x44210c], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x404828
mov edi, eax
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test esi, esi
je 0x404742
test edi, edi
je 0x404742
push edi
push 0
push dword [0x44210c]
call sub.KERNEL32.dll_HeapFree
jmp 0x404742
mov ebx, dword [esi + 0xa0]
mov edi, dword [eax + edi]
mov eax, dword [0x44210c]
test eax, eax
jne 0x404586
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x404809
mov dword [0x44210c], eax
push 0x44
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x404809
mov dword [eax], 0xd
mov esi, eax
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x38]
movsd qword [eax + 4], xmm0
movsd qword [eax + 0xc], xmm1
mov eax, dword [esp + 0x40]
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 4
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
push edi
call fcn.0042ba70
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [ecx + 4], esi
mov byte [ecx], 1
jmp 0x40474b
cmp ebx, 1
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
jne 0x4046b9
test ecx, ecx
mov ecx, dword [esp + 8]
js 0x4047ca
je 0x40465e
mov eax, dword [0x44210c]
test eax, eax
je 0x404668
mov edi, dword [esp + 0x10]
jmp 0x40467e
push esi
push ebx
push 1
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x404742
mov dword [esp + 0x10], 0
jmp 0x4046bd
call sub.KERNEL32.dll_GetProcessHeap
mov edi, dword [esp + 0x10]
test eax, eax
je 0x40482c
mov dword [0x44210c], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x40482c
push edi
push dword [esp + 0x10]
mov esi, eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test edi, edi
je 0x4046b5
test esi, esi
je 0x4046b5
push esi
push 0
push dword [0x44210c]
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4046e8
cmp eax, 2
je 0x4046f8
cmp dword [esi + 0x58], 0
je 0x4046e8
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4046e8
push eax
push 0
push dword [0x44210c]
call sub.KERNEL32.dll_HeapFree
lea ecx, [esi + 0x60]
call fcn.00402030
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 4]
movsd xmm1, qword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
movsd xmm2, qword [esp + 0x40]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x5c], ecx
movsd qword [esi + 0x68], xmm1
movsd xmm1, qword [esp + 0x48]
movsd qword [esi + 0x60], xmm0
movsd qword [esi + 0x70], xmm2
movsd qword [esi + 0x78], xmm1
mov eax, dword [esp + 0x20]
mov word [eax], 0x100
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 8]
push 0x4386b8
call fcn.00436220
add esp, 4
ud2
push 0x43862c
call fcn.00436220
add esp, 4
ud2
mov ecx, edi
push 0x43865c
call fcn.00436220
add esp, 4
ud2
push 0x43863c
call fcn.00436220
add esp, 4
ud2
mov ecx, edi
push 0x43864c
call fcn.00436220
add esp, 4
ud2
mov edx, dword [esp + 8]
mov ecx, edi
push 0x4386a8
call fcn.00436220
add esp, 4
ud2
push 0x43866c
call fcn.00436220
add esp, 4
ud2
call fcn.0040f7b0
ud2
mov ecx, edi
push 0x43862c
call fcn.00436330
add esp, 4
ud2
mov ecx, ebx
mov edx, 4
call fcn.00436130
ud2
mov ecx, str.Unable_to_read_table_values
mov edx, 0x1b
push 0x438698
call fcn.004364c0
add esp, 4
ud2
mov ecx, 0x44
mov edx, 4
call fcn.00436130
ud2
mov ecx, edi
mov edx, 4
call fcn.00436130
ud2
mov ecx, esi
jmp 0x40482e
mov ecx, edi
mov edx, 1
call fcn.00436130
ud2