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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44353a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
sub esp, 0x18
mov dword [esp + 0x5c], ecx
mov ecx, esp
mov dword [esp + 0xa4], esp
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x44d470
mov dword [esp + 0x50], 0
mov byte [ecx], 0
call fcn.00403890
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x198], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x44d470
mov byte [ecx], 0
call fcn.00403890
lea ecx, [esp + 0x11c]
mov dword [esp + 0x198], 0xffffffff
call fcn.00414160
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x154], 1
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x406d72
mov dword [esp + 0x78], 0x8004
mov edi, edi
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
lea ecx, [edi + edi*8]
shl ecx, 2
mov dword [esp + 0x2c], ecx
cmp dword [ecx + eax + 4], edx
jae 0x406d72
movzx edx, word [ecx + eax + 0xc]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x34]
add eax, 8
push edx
add ecx, eax
call fcn.00413980
mov esi, eax
lea eax, [esp + 0xd8]
mov byte [esp + 0x154], 2
cmp esi, eax
je 0x40657c
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00403f00
lea eax, [esi + 0x18]
lea ecx, [esp + 0xf0]
cmp ecx, eax
je 0x40654a
push 0xffffffffffffffff
push 0
push eax
call fcn.00403f00
mov eax, dword [esi + 0x30]
mov dword [esp + 0x108], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x10c], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x110], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x114], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x118], eax
mov byte [esp + 0x154], 1
cmp dword [esp + 0x60], 0x10
jb 0x406597
push dword [esp + 0x4c]
call fcn.0042d556
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jb 0x4065bf
push dword [esp + 0x34]
call fcn.0042d556
add esp, 4
mov eax, dword [esp + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx eax, ax
add eax, 0xffff7ffb
cmp eax, 0x7a
ja case.0x4065e2.32774
movzx eax, byte [eax + 0x406efc]
jmp dword [eax*4 + 0x406eec]
push 0xffffffffffffffff
push edi
push ebx
call fcn.00405ec0
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov esi, 0x9001
movzx edx, word [eax + ecx*4 + 0xc]
cmp dx, si
je 0x406614
mov esi, 0xc001
cmp dx, si
jne 0x406ddb
push dword [eax + ecx*4 + 0x10]
mov ecx, dword [esp + 0x34]
call fcn.00405c10
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
sub esp, 0x18
mov dword [esp + 0x54], ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x44d470
mov byte [ecx], 0
call fcn.00403890
sub esp, 0x18
mov ecx, esp
mov byte [esp + 0x198], 3
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x44d470
mov byte [ecx], 0
call fcn.00403890
lea ecx, [esp + 0xd4]
mov byte [esp + 0x198], 1
call fcn.00414160
mov esi, edi
xor edi, edi
mov byte [esp + 0x154], 4
cmp dword [esp + 0x14], edi
jbe 0x406770
lea ecx, [ecx]
dec esi
js 0x406ec1
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x406ec1
mov ecx, dword [ebx]
lea eax, [esi + esi*8]
lea eax, [ecx + eax*4]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [eax + 8]
mov dword [esp + 0x28], eax
call fcn.00413980
mov ecx, dword [esp + 0x1c]
or ecx, 1
cmp dword [eax + 0x34], 1
mov dword [esp + 0x1c], ecx
je 0x40670e
mov eax, dword [esp + 0x24]
mov byte [esp + 0x13], 0
cmp dword [eax + 0x14], 7
jne 0x406713
mov byte [esp + 0x13], 1
test cl, 1
je 0x40675a
and ecx, 0xfffffffe
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x1c], ecx
jb 0x406732
push dword [esp + 0x4c]
call fcn.0042d556
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jb 0x40675a
push dword [esp + 0x34]
call fcn.0042d556
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40685a
inc edi
cmp edi, dword [esp + 0x14]
jb 0x4066b0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x406a51
cmp eax, edx
jae 0x4068a5
mov esi, dword [esp + 0x2c]
mov edx, dword [ebx]
lea eax, [esi - 0x24]
add eax, edx
push eax
lea ecx, [esi + 0x18]
add ecx, edx
push ecx
push dword [edx + esi + 0x18]
lea eax, [esp + 0x94]
push eax
call fcn.00408480
mov eax, dword [ebx]
push dword [esp + 0x88]
mov edx, dword [ebx + 4]
add esi, 0xffffffdc
add eax, esi
push eax
lea ecx, [eax + 0x24]
call fcn.00404d90
mov edi, dword [ebx + 4]
add esp, 8
lea esi, [edi - 0x24]
cmp esi, edi
je 0x4067e7
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x24
cmp esi, edi
jne 0x4067d8
add dword [ebx + 4], 0xffffffdc
dec dword [ebp + 0xc]
sub dword [esp + 0x2c], 0x24
jmp 0x406a3a
push 0xfffffffffffffffe
push edi
push ebx
call fcn.00405ec0
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
movzx edx, word [eax + ecx*4 + 0xc]
mov eax, dword [eax + ecx*4 + 0x10]
mov ecx, 0xc001
cmp dx, cx
jne 0x406e06
lea ecx, [eax + 2]
mov dword [esp + 0x14], ecx
jmp 0x406625
push 0xffffffffffffffff
push edi
push ebx
call fcn.00405ec0
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
movzx edx, word [eax + ecx*4 + 0xc]
mov eax, dword [eax + ecx*4 + 0x10]
mov ecx, 0xc001
cmp dx, cx
jne 0x406e31
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
jmp 0x406625
cmp byte [0x45dea9], 0
je 0x406e8d
mov eax, dword [esp + 0x18]
mov ecx, 0x804c
cmp ax, cx
jb 0x40687f
mov ecx, 0x8285
cmp ax, cx
jb 0x40688d
mov ecx, 0x801c
cmp ax, cx
jne 0x406e59
push str.Warning:_Omitted_expression_found_n
call fcn.0042d47b
mov edx, edi
add esp, 4
mov dword [esp + 0x28], edx
jmp 0x406774
cmp byte [0x45dea8], 0
mov dword [esp + 0x34], vtable.CNode.0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], vtable.COpcode.0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
je 0x406952
mov eax, 0x8000
mov word [esp + 0x40], ax
mov ecx, dword [esp + 0x2c]
add ecx, 0x18
mov byte [esp + 0x154], 5
add ecx, dword [ebx]
lea eax, [esp + 0x34]
push eax
call fcn.00403180
mov byte [esp + 0x154], 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x406a3a
mov edi, dword [esp + 0x50]
mov esi, eax
cmp eax, edi
je 0x406944
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x24
cmp esi, edi
jne 0x406931
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042d556
add esp, 4
jmp 0x406a3a
mov eax, dword [ebx]
mov edx, dword [esp + 0x2c]
mov esi, 0x8000
mov ecx, dword [eax + edx + 0x18]
mov word [esp + 0x40], si
lea edi, [eax + edx]
mov byte [esp + 0x154], 6
sub ecx, dword [edi + 0x18]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
jne 0x40699b
push 1
lea ecx, [edi + 0x18]
call fcn.00403570
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x128], ecx
mov dword [esp + 0x8c], ecx
test ecx, ecx
je 0x4069ff
mov dword [ecx], vtable.CNode.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], vtable.COpcode.0
mov word [ecx + 0xc], si
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 3
add ecx, 0x18
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x158], 9
call fcn.00413510
mov byte [esp + 0x154], 6
mov ecx, dword [esp + 0x20]
add dword [edi + 0x1c], 0x24
mov esi, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea ecx, [ecx + ecx*8]
lea edx, [esi - 0x24]
lea ecx, [eax + ecx*4]
cmp ecx, edx
je 0x406a32
cmp edx, esi
je 0x406a32
sub esp, 8
push esi
call fcn.00404df0
add esp, 0xc
mov byte [esp + 0x154], 4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x14]
jb 0x406786
mov edi, dword [ebp + 0xc]
mov eax, 0x802f
cmp word [esp + 0x18], ax
jne 0x406cda
mov eax, dword [ebx]
lea esi, [edi + edi*8]
shl esi, 2
or ecx, 0xffffffff
mov eax, dword [esi + eax + 0x18]
mov dword [esp + 0x28], ecx
push dword [eax + 0x10]
mov ecx, dword [esp + 0x34]
lea eax, [edi + 1]
push eax
push ebx
mov dword [esp + 0x38], esi
call fcn.00406400
mov ecx, dword [ebx]
mov dword [esp + 0x18], eax
lea eax, [eax + eax*8]
lea edx, [ecx + eax*4]
movzx eax, word [edx - 0x18]
cmp ax, word [esp + 0x78]
jne 0x406ccb
mov eax, dword [edx - 0x14]
cmp eax, dword [esi + ecx + 4]
jbe 0x406ccb
mov ecx, dword [esp + 0x30]
push eax
push dword [esp + 0x1c]
push ebx
call fcn.00406400
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
shl ecx, 2
add eax, ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [eax + 8]
mov dword [esp + 0x24], eax
call fcn.00413980
mov ecx, dword [esp + 0x1c]
or ecx, 2
cmp dword [eax + 0x34], 1
mov dword [esp + 0x1c], ecx
je 0x406b0d
mov eax, dword [esp + 0x20]
mov byte [esp + 0x13], 0
cmp dword [eax + 0x14], 7
jne 0x406b12
mov byte [esp + 0x13], 1
test cl, 2
je 0x406b59
and ecx, 0xfffffffd
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x1c], ecx
jb 0x406b31
push dword [esp + 0x4c]
call fcn.0042d556
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jb 0x406b59
push dword [esp + 0x34]
call fcn.0042d556
add esp, 4
cmp byte [esp + 0x13], 0
je 0x406ccb
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
shl ecx, 2
mov dword [esp + 0x24], ecx
add ecx, 0xffffffdc
add eax, ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [eax + 8]
mov dword [esp + 0x24], eax
call fcn.00413980
mov ecx, dword [esp + 0x1c]
or ecx, 4
cmp dword [eax + 0x34], 1
mov dword [esp + 0x1c], ecx
je 0x406baa
mov eax, dword [esp + 0x20]
mov byte [esp + 0x13], 0
cmp dword [eax + 0x14], 7
jne 0x406baf
mov byte [esp + 0x13], 1
test cl, 4
je 0x406bf6
and ecx, 0xfffffffb
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x1c], ecx
jb 0x406bce
push dword [esp + 0x4c]
call fcn.0042d556
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jb 0x406bf6
push dword [esp + 0x34]
call fcn.0042d556
add esp, 4
cmp byte [esp + 0x13], 0
je 0x406ccb
mov eax, dword [ebx]
push dword [esp + 0x8c]
mov dword [esi + eax + 0x14], 7
add esi, dword [ebx]
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
push eax
lea ecx, [eax + 0x24]
call fcn.00404d90
mov eax, dword [esi + 0x1c]
add esp, 8
lea esi, [eax - 0x24]
mov dword [esp + 0x20], eax
cmp esi, eax
je 0x406c52
mov ebx, eax
lea ebx, [ebx]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x24
cmp esi, ebx
jne 0x406c40
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
add dword [eax + 0x1c], 0xffffffdc
mov eax, dword [ebx]
lea edx, [esi + eax]
add eax, dword [esp + 0x14]
lea ecx, [edx + 0x18]
push eax
push ecx
push dword [edx + 0x18]
lea eax, [esp + 0x12c]
push eax
call fcn.00408480
mov ecx, dword [ebx]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + ecx + 0x18]
add edx, 0xffffffdc
add edx, ecx
add ecx, 0x18
push edx
add ecx, esi
add eax, 0x48
push ecx
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00408480
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x24]
add eax, dword [ebx]
add ecx, eax
sub ecx, esi
add ecx, 0xffffffdc
lea eax, [esi + 0x24]
add eax, dword [ebx]
push ecx
push eax
lea eax, [esp + 0x12c]
push eax
mov ecx, ebx
call fcn.00404cd0
jmp 0x406cda
cmp dword [esp + 0x28], 0xffffffff
mov edi, dword [esp + 0x18]
cmovne edi, dword [esp + 0x28]
dec edi
mov byte [esp + 0x154], 1
cmp dword [esp + 0xbc], 0x10
jb 0x406cfb
push dword [esp + 0xa8]
call fcn.0042d556
add esp, 4
cmp dword [esp + 0xa4], 0x10
mov byte [esp + 0xa8], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0xf
jb 0x406d32
push dword [esp + 0x90]
call fcn.0042d556
add esp, 4
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov byte [esp + 0x90], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0xf
mov dword [ebp + 0xc], edi
cmp edi, eax
jb 0x4064e0
cmp dword [esp + 0x104], 0x10
jb 0x406d8b
push dword [esp + 0xf0]
call fcn.0042d556
add esp, 4
cmp dword [esp + 0xec], 0x10
mov dword [esp + 0x104], 0xf
mov dword [esp + 0x100], 0
mov byte [esp + 0xf0], 0
jb 0x406dc2
push dword [esp + 0xd8]
call fcn.0042d556
add esp, 4
mov ecx, dword [esp + 0x14c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.Error:_Invalid_reference_to_external_variable_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0x13c]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x140]
push eax
call fcn.0042f49a
push str.Error:_Invalid_opcode_for_procedures_number_of_arguments_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0x130]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x134]
push eax
call fcn.0042f49a
push str.Error:_Invalid_opcode_for_addRegion_number_of_arguments_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x80]
push eax
call fcn.0042f49a
mov eax, dword [ebp + 0xc]
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
push dword [eax + ecx*4 + 4]
push str.Error:_Not_enough_arguments_for__X_n
call fcn.0042d47b
add esp, 8
lea ecx, [esp + 0x7c]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x80]
push eax
call fcn.0042f49a
mov eax, dword [ebp + 0xc]
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
push dword [eax + ecx*4 + 4]
push str.Error:_Expression_required_for__X_n
call fcn.0042d47b
add esp, 8
lea ecx, [esp + 0x7c]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x80]
push eax
call fcn.0042f49a
push str.Error:_Index_of_node_out_of_range_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x80]
push eax
call fcn.0042f49a
lea ecx, [ecx]
clc
inc eax
add cl, ch
inc eax
add byte [ecx], ch
push 0x66210040
inc eax
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ecx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
int3