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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4436a2
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
push edi
mov edi, dword [esp + 0x208]
mov ecx, dword [edi]
cmp ecx, dword [edi + 4]
je 0x407f73
movzx eax, word [ecx + 0xc]
mov edx, 0x802b
push esi
cmp ax, dx
jne 0x4074bc
mov esi, dword [ecx + 4]
cmp ecx, 0x45c9d4
je 0x4074b7
mov eax, dword [0x45c9d8]
mov dword [ecx + 4], eax
mov ax, word [0x45c9e0]
mov word [ecx + 0xc], ax
mov eax, dword [0x45c9e4]
mov dword [ecx + 0x10], eax
mov eax, dword [0x45c9e8]
mov dword [ecx + 0x14], eax
push 0x45c9ec
add ecx, 0x18
call fcn.00413510
mov eax, dword [edi]
mov dword [eax + 4], esi
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sub edx, ecx
mov eax, 0x38e38e39
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4074d9
dec eax
jmp 0x4074db
xor eax, eax
push ebx
push ebp
lea ebp, [eax + eax*8]
shl ebp, 2
mov edx, 0x801c
movzx eax, word [ecx + ebp + 0xc]
lea ebx, [ecx + ebp]
mov esi, 0xc001
cmp ax, dx
jne 0x407526
cmp dword [ebx + 0x10], 0
jne 0x407526
mov eax, dword [ebx + 0x18]
movzx eax, word [eax + 0xc]
cmp ax, si
jne 0x407526
mov esi, dword [ebx + 4]
push 0x45c9b0
mov ecx, ebx
call fcn.00413400
mov eax, dword [edi]
mov dword [eax + ebp + 4], esi
jmp 0x4075d7
mov eax, dword [0x45c9b4]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x64], eax
mov ax, word [0x45c9bc]
mov word [esp + 0x6c], ax
mov eax, dword [0x45c9c0]
lea esi, [ecx + 0x24]
add esi, ebp
mov dword [esp + 0x60], vtable.CNode.0
mov dword [esp + 0x68], vtable.COpcode.0
mov dword [esp + 0x70], eax
mov dword [esp + 0x20c], 0
mov eax, dword [0x45c9c4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
push 0x45c9c8
lea ecx, [esp + 0x7c]
mov byte [esp + 0x210], 1
call fcn.00413510
lea eax, [esp + 0x60]
push eax
push esi
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
mov dword [esp + 0x218], 2
call fcn.00408b30
lea ecx, [esp + 0x60]
mov dword [esp + 0x20c], 0xffffffff
call fcn.004133a0
mov eax, dword [edi]
mov dword [eax + ebp + 4], ebx
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
xor ebp, ebp
shr eax, 0x1f
mov dword [esp + 0x28], ebp
add eax, edx
je 0x407f70
xor ebx, ebx
mov ecx, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
movzx eax, word [ebx + esi + 0xc]
sub eax, 0x802f
je 0x407a8d
dec eax
jne 0x407dde
mov ecx, dword [ebx + esi + 0x18]
mov dword [esp + 0x2c], vtable.CNode.0
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov ax, word [ecx + 0xc]
mov word [esp + 0x38], ax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x34], vtable.COpcode.0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20c], 3
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea eax, [ecx + 0x18]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x210], 4
call fcn.00413510
mov dword [esp + 0x20c], 5
mov esi, dword [edi]
mov ecx, dword [ebx + esi + 0x18]
add ecx, 0x24
call fcn.00413440
mov dword [esp + 0x24], eax
mov eax, 0xc001
cmp word [esp + 0x38], ax
jne 0x407e99
add esi, 0x24
push 0x45c9d4
lea ecx, [esp + 0x178]
add esi, ebx
call fcn.00413310
push eax
push esi
lea eax, [esp + 0xd4]
push eax
mov ecx, edi
mov byte [esp + 0x218], 6
call fcn.00408b30
lea ecx, [esp + 0x174]
call fcn.004133a0
mov ecx, dword [edi]
mov dword [esp + 0x50], 0
mov eax, dword [ecx + ebx + 4]
mov dword [ecx + ebx + 0x28], eax
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov byte [esp + 0x20c], 7
nop
inc ebx
mov dword [esp + 0x18], ebx
js 0x407e6e
mov ebp, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, ebp
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x407e6e
lea esi, [ebx + ebx*8]
lea eax, [esp + 0x2c]
lea ecx, [esi*4]
add ecx, ebp
mov dword [esp + 0x5c], ebx
cmp ecx, eax
je 0x40779e
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov ax, word [ecx + 0xc]
mov word [esp + 0x38], ax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x40], eax
lea eax, [ecx + 0x18]
push eax
lea ecx, [esp + 0x48]
call fcn.00413510
mov eax, 0x8004
cmp word [esp + 0x38], ax
jne 0x40780b
cmp dword [esp + 0x40], 0
jne 0x40780b
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
sub ecx, ebp
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40780b
mov eax, dword [ebp + 0x10]
cmp eax, dword [esp + 0x20]
jne 0x4077e3
mov eax, dword [edi]
mov dword [eax + esi*4 + 0x14], 4
jmp 0x40780b
cmp eax, dword [esp + 0x24]
jne 0x4077f5
mov eax, dword [edi]
mov dword [eax + esi*4 + 0x14], 5
jmp 0x40780b
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x54]
call fcn.004083c0
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x30], eax
jb 0x407730
mov esi, dword [edi]
mov ebp, dword [esp + 0x50]
lea eax, [ebx + ebx*8]
shl eax, 2
mov dword [esp + 0x20], eax
mov ecx, dword [eax + esi - 0x2c]
sub ecx, dword [eax + esi - 0x30]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
mov byte [esp + 0x13], 0
add eax, edx
je 0x40789c
cmp dword [esp + 0x28], 0
jbe 0x40789c
lea eax, [ebx - 2]
lea eax, [eax + eax*8]
lea ecx, [esi + eax*4]
call fcn.00413440
mov esi, dword [esp + 0x54]
sub esi, ebp
sar esi, 2
xor edx, edx
mov dword [esp + 0x24], eax
test esi, esi
je 0x40789c
mov ebx, eax
mov eax, dword [ebp + edx*4]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + 0x18]
cmp dword [eax + 0x10], ebx
jne 0x407893
mov dword [ecx + 0x14], 5
mov byte [esp + 0x13], 1
inc edx
cmp edx, esi
jb 0x407873
mov ebx, dword [esp + 0x18]
mov eax, dword [0x45c9b4]
mov esi, dword [esp + 0x20]
add esi, dword [edi]
mov dword [esp + 0x64], eax
mov ax, word [0x45c9bc]
mov word [esp + 0x6c], ax
mov eax, dword [0x45c9c0]
mov dword [esp + 0x60], vtable.CNode.0
mov dword [esp + 0x68], vtable.COpcode.0
mov dword [esp + 0x70], eax
mov eax, dword [0x45c9c4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
push 0x45c9c8
lea ecx, [esp + 0x7c]
mov byte [esp + 0x210], 9
call fcn.00413510
lea eax, [esp + 0x60]
push eax
push esi
lea eax, [esp + 0xc8]
push eax
mov ecx, edi
mov byte [esp + 0x218], 0xa
call fcn.00408b30
lea ecx, [esp + 0x60]
mov byte [esp + 0x20c], 7
call fcn.004133a0
mov ecx, dword [edi]
mov esi, dword [esp + 0x20]
mov eax, dword [ecx + esi + 0x28]
mov dword [ecx + esi + 4], eax
lea ecx, [esi - 0x24]
add ecx, dword [edi]
lea eax, [esp + 0x2c]
cmp ecx, eax
je 0x40797d
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov ax, word [ecx + 0xc]
mov word [esp + 0x38], ax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x40], eax
lea eax, [ecx + 0x18]
push eax
lea ecx, [esp + 0x48]
call fcn.00413510
mov eax, 0x8004
cmp word [esp + 0x38], ax
jne 0x407e43
mov eax, dword [esp + 0x44]
mov ecx, 0xc001
movzx eax, word [eax + 0xc]
cmp ax, cx
jne 0x407e18
cmp byte [esp + 0x13], 0
mov eax, dword [edi]
je 0x407a16
mov ecx, dword [esp + 0x1c]
mov dword [ecx + eax + 0x14], 6
add ecx, dword [edi]
lea eax, [ecx - 0x24]
mov ecx, dword [ecx + 0x18]
push eax
call fcn.00413400
mov ecx, dword [edi]
add ebx, 0xfffffffe
lea eax, [ebx + ebx*8]
mov ebx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
add ecx, 0x18
push eax
add ecx, ebx
call fcn.00403180
mov eax, dword [edi]
add eax, 0xffffffdc
add eax, ebx
push eax
lea eax, [esp + 0xcc]
push eax
mov ecx, edi
call fcn.00408160
mov eax, dword [edi]
lea ecx, [esi - 0x24]
add ecx, eax
add eax, 0xffffff94
push ecx
add eax, esi
push eax
lea eax, [esp + 0xe0]
push eax
mov ecx, edi
call fcn.00404cd0
jmp 0x407a47
add eax, 0xffffffdc
add eax, esi
push eax
lea eax, [esp + 0xe4]
push eax
mov ecx, edi
call fcn.00408160
mov eax, dword [edi]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0xbc]
push dword [ebx + eax + 0x18]
push ecx
lea ecx, [ebx + 0x18]
add ecx, eax
call fcn.00408160
test ebp, ebp
je 0x407a6c
push ebp
call fcn.0042d556
add esp, 4
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20c], 0xffffffff
call fcn.004133a0
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
jmp 0x407dde
cmp dword [ebx + esi + 0x14], 7
je 0x407f45
push dword [ebx + esi + 0x18]
lea ecx, [esp + 0x88]
call fcn.00413310
mov eax, 0xc001
mov dword [esp + 0x20c], 0xb
cmp word [esp + 0x90], ax
jne 0x407f1a
mov esi, dword [edi]
add esi, 0x24
push 0x45c9d4
lea ecx, [esp + 0x1c0]
add esi, ebx
call fcn.00413310
push eax
push esi
lea eax, [esp + 0xd8]
push eax
mov ecx, edi
mov byte [esp + 0x218], 0xc
call fcn.00408b30
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x20c], 0xb
call fcn.004133a0
mov ecx, dword [edi]
mov eax, dword [ecx + ebx + 0x4c]
mov dword [ecx + ebx + 0x28], eax
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x14]
inc ebx
js 0x407eef
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x407eef
lea eax, [ebx + ebx*8]
lea ecx, [esi + eax*4]
lea eax, [esp + 0x84]
cmp ecx, eax
je 0x407b92
mov eax, dword [ecx + 4]
mov dword [esp + 0x88], eax
mov ax, word [ecx + 0xc]
mov word [esp + 0x90], ax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x98], eax
lea eax, [ecx + 0x18]
push eax
lea ecx, [esp + 0xa0]
call fcn.00413510
cmp dword [esp + 0x88], ebp
jb 0x407b20
mov esi, dword [edi]
lea ebp, [ebx + ebx*8]
shl ebp, 2
push 0x45c9b0
lea ecx, [esp + 0x154]
mov dword [esp + 0x1c], ebp
add esi, ebp
call fcn.00413310
push eax
push esi
lea eax, [esp + 0xe4]
push eax
mov ecx, edi
mov byte [esp + 0x218], 0xd
call fcn.00408b30
lea ecx, [esp + 0x150]
mov byte [esp + 0x20c], 0xb
call fcn.004133a0
mov ecx, dword [edi]
mov eax, dword [ecx + ebp + 0x28]
mov dword [ecx + ebp + 4], eax
mov ecx, dword [edi]
add ecx, 0xffffffdc
add ecx, ebp
lea eax, [esp + 0x84]
cmp ecx, eax
je 0x407c3d
mov eax, dword [ecx + 4]
mov dword [esp + 0x88], eax
mov ax, word [ecx + 0xc]
mov word [esp + 0x90], ax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x98], eax
lea eax, [ecx + 0x18]
push eax
lea ecx, [esp + 0xa0]
call fcn.00413510
mov eax, 0x8004
cmp word [esp + 0x90], ax
jne 0x407da0
mov eax, dword [esp + 0x98]
cmp eax, 4
je 0x407da0
cmp eax, 5
je 0x407da0
mov ebp, dword [esp + 0x9c]
mov ecx, 0xc001
movzx eax, word [ebp + 0xc]
cmp ax, cx
jne 0x407ec4
mov ebp, dword [ebp + 0x10]
cmp ebp, dword [esp + 0x88]
jbe 0x407da0
mov eax, dword [edi]
mov esi, dword [esp + 0x18]
add eax, 0xffffffdc
add eax, esi
push eax
lea eax, [esp + 0xc8]
push eax
mov ecx, edi
call fcn.00408160
add esi, dword [edi]
push 0x45c9d4
lea ecx, [esp + 0x19c]
call fcn.00413310
push eax
push esi
lea eax, [esp + 0xdc]
push eax
mov ecx, edi
mov byte [esp + 0x218], 0xe
call fcn.00408b30
lea ecx, [esp + 0x198]
mov byte [esp + 0x20c], 0xb
call fcn.004133a0
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx + 0x28]
mov dword [ecx + edx + 4], eax
mov eax, dword [edi]
add eax, 0xffffffdc
add eax, edx
push eax
lea ecx, [esp + 0x130]
call fcn.00413310
mov byte [esp + 0x20c], 0xf
cmp dword [esp + 0x140], 2
jne 0x407d94
push 1
push ebx
push edi
call fcn.00405ec0
mov ecx, dword [edi]
mov ebx, eax
lea edx, [ebx + ebx*8]
lea ecx, [ecx + edx*4]
push ecx
lea ecx, [esp + 0x88]
call fcn.00413400
cmp dword [esp + 0x88], ebp
jb 0x407d21
mov esi, dword [edi]
lea ebx, [ebx + ebx*8]
shl ebx, 2
push 0x45c9b0
lea ecx, [esp + 0x1e4]
add esi, ebx
call fcn.00413310
push eax
push esi
lea eax, [esp + 0xbc]
push eax
mov ecx, edi
mov byte [esp + 0x218], 0x10
call fcn.00408b30
lea ecx, [esp + 0x1e0]
call fcn.004133a0
mov ecx, dword [edi]
mov eax, dword [ecx + ebx + 0x28]
mov dword [ecx + ebx + 4], eax
lea ecx, [esp + 0x12c]
call fcn.004133a0
lea ecx, [esp + 0x84]
mov dword [esp + 0x20c], 0xffffffff
call fcn.004133a0
mov ecx, dword [edi]
mov ebx, dword [esp + 0x1c]
add ecx, 0x18
add ecx, ebx
lea eax, [esp + 0xb8]
push dword [ecx]
push eax
call fcn.00408160
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc ebp
inc ecx
add ebx, 0x24
mov esi, dword [edi]
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc ebp
add ebx, 0x24
add eax, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebx
cmp ebp, eax
jae 0x407f70
mov ecx, dword [esp + 0x14]
jmp 0x407610
push str.Error:_Invalid_opcode_for_jump_address_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0xf0]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0xf4]
push eax
call fcn.0042f49a
push str.Error:_Invalid_tail_of_while_statement_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0x120]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x124]
push eax
call fcn.0042f49a
push str.Error:_Index_of_node_out_of_range_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0xa8]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0xac]
push eax
call fcn.0042f49a
push str.Error:_Invalid_opcode_for_jump_address_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0x108]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x10c]
push eax
call fcn.0042f49a
push str.Error:_Invalid_opcode_for_jump_address_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0xe4]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0xe8]
push eax
call fcn.0042f49a
push str.Error:_Index_of_node_out_of_range_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0xa8]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0xac]
push eax
call fcn.0042f49a
push str.Error:_Invalid_opcode_for_jump_address_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0xfc]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x100]
push eax
call fcn.0042f49a
push str.Error:_Conditional_expression_left_in_stack_n
call fcn.0042d47b
add esp, 4
lea ecx, [esp + 0x114]
call fcn.0042cbca
push 0x455e70
lea eax, [esp + 0x118]
push eax
call fcn.0042f49a
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x1f8]
pop edi
mov dword fs:[0], ecx
add esp, 0x200
ret 4