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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
xor edx, edx
push edi
mov edi, dword [esi + 0xc]
cmp edi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], ecx
jne 0x42ec77
xor eax, eax
jmp 0x42f399
mov ebx, dword [ebp + 0xc]
cmp ebx, edx
je 0x42f092
movzx eax, byte [ebx]
cmp eax, 0x62
mov dword [esp + 0xc], eax
jg 0x42f09d
je 0x42f092
cmp eax, 0x47
jg 0x42eecf
je 0x42ee03
cmp eax, 0x38
jg 0x42ed33
je 0x42ecdf
sub eax, 0x13
je 0x42f067
dec eax
je case.0x42f0b0.116
sub eax, 4
jne case.0x42f0b0.117
push dword [ebp + 0x10]
push dword [ebx + 8]
push esi
call fcn.0042ec3c
add esp, 0xc
jmp 0x42f0cb
cmp dword [esi + 0x1a4], edx
jne 0x42ecf9
push str.RAISE___may_only_be_used_within_a_trigger_program
mov edi, esi
call fcn.004188fe
pop ecx
jmp 0x42ec70
cmp byte [ebx + 1], 2
jne 0x42ed06
mov ecx, esi
call fcn.004347f5
mov al, byte [ebx + 1]
cmp al, 4
jne 0x42ed1e
xor eax, eax
push eax
push dword [ebx + 4]
push eax
push 4
push eax
push 6
jmp 0x42f059
push 0
push dword [ebx + 4]
movsx eax, al
push eax
mov eax, esi
call fcn.00434809
jmp 0x42f128
cmp eax, 0x3c
je 0x42edde
cmp eax, 0x43
jle case.0x42f0b0.117
cmp eax, 0x45
jle 0x42f007
cmp eax, 0x46
je case.0x42f0b0.146
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
and dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov eax, edi
mov dword [esp + 0xc], ecx
call fcn.0042537d
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x18], eax
je 0x42edbd
push 0xc
pop ecx
mov esi, eax
push eax
push dword [ebp + 8]
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x34]
call fcn.0042f62a
and dword [esp + 0x34], 0
mov esi, dword [ebp + 8]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x78], eax
pop ecx
lea eax, [esp + 0x6c]
pop ecx
mov byte [esp + 0x38], 0x84
mov byte [esp + 0x68], 0x4c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x42f58a
mov ecx, dword [esp + 0xc]
dec eax
shr eax, 1
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
jmp 0x42f514
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 8]
movsx ecx, word [ebx + 0x1c]
push dword [ebp + 0x10]
inc eax
imul eax, dword [ebx + 0x18]
lea eax, [eax + ecx + 1]
push eax
push 0x6d
mov eax, edi
call fcn.00425305
jmp 0x42f128
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ebx]
push eax
push esi
lea edi, [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
call fcn.0042f62a
push dword [esp + 0x20]
lea edi, [esp + 0x40]
push esi
mov dword [esp + 0x30], eax
call fcn.0042f62a
mov edx, eax
mov eax, esi
call fcn.0043012e
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.0043012e
push 0x10
push dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
push edx
push dword [esp + 0x3c]
mov edi, esi
push 0x50
push dword [esp + 0x30]
call fcn.0042d2bc
mov edx, dword [esp + 0x5c]
mov ebx, dword [ebx + 0x14]
mov eax, esi
call fcn.00430149
push ebx
push esi
lea edi, [esp + 0x64]
call fcn.0042f62a
push 0x10
push dword [esp + 0x50]
mov edi, esi
push eax
push dword [esp + 0x5c]
mov eax, ebx
push 0x4e
push dword [esp + 0x50]
call fcn.0042d2bc
mov eax, dword [esp + 0x5c]
add esp, 0x48
push dword [ebp + 0x10]
push dword [esp + 0x20]
push dword [esp + 0x18]
push 0x45
call fcn.00425287
mov edx, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
call fcn.00430149
mov edx, dword [esp + 0x1c]
call fcn.00430149
jmp 0x42f381
cmp eax, 0x5b
jg 0x42f042
cmp eax, 0x52
jge 0x42f007
cmp eax, 0x48
je 0x42ef91
jle case.0x42f0b0.117
cmp eax, 0x4a
jle 0x42ef3f
cmp eax, 0x50
jg case.0x42f0b0.117
push dword [ebx + 8]
lea edi, [esp + 0x30]
push esi
call fcn.0042f62a
push dword [ebx + 0xc]
lea edi, [esp + 0x40]
push esi
mov dword [esp + 0x30], eax
call fcn.0042f62a
push 0x10
push dword [ebp + 0x10]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x2c]
push dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov edi, esi
call fcn.0042d2bc
add esp, 0x28
jmp 0x42f381
push 0
push dword [ebp + 0x10]
mov eax, edi
push 1
push 7
call fcn.00425287
push dword [ebx + 8]
lea edi, [esp + 0x40]
push esi
call fcn.0042f62a
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
call fcn.004252f0
push 0
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x40]
push 0x14
call fcn.00425287
mov edx, dword [esp + 0x44]
add esp, 0x30
mov eax, edi
call fcn.0042552f
jmp 0x42f381
mov eax, edi
call fcn.0042537d
mov dword [esp + 0x18], eax
mov eax, edi
call fcn.0042537d
push 0
push dword [ebp + 0x10]
mov dword [esp + 0x18], eax
push 0
push 0xa
mov eax, edi
call fcn.00425287
push dword [esp + 0x20]
mov eax, ebx
push dword [esp + 0x2c]
push esi
call fcn.0042e781
add esp, 0x1c
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov eax, edi
push 1
push 7
call fcn.00425287
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.004253ca
push ebx
push ebx
push dword [ebp + 0x10]
mov eax, edi
push 0x14
call fcn.00425287
mov edx, dword [esp + 0x30]
add esp, 0x20
mov ecx, edi
call fcn.004253ca
jmp 0x42f381
push dword [ebx + 8]
lea edi, [esp + 0x30]
push esi
call fcn.0042f62a
push dword [ebx + 0xc]
lea edi, [esp + 0x40]
push esi
mov dword [esp + 0x30], eax
call fcn.0042f62a
push dword [ebp + 0x10]
push dword [esp + 0x34]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
call fcn.00425287
add esp, 0x20
jmp 0x42f381
sub eax, 0x5d
je 0x42f067
dec eax
jne case.0x42f0b0.117
push eax
push dword [ebx + 4]
push eax
push dword [ebp + 0x10]
push eax
push 0x5e
push edi
call fcn.0042531c
add esp, 0x1c
jmp 0x42f381
push dword [ebx + 8]
lea edi, [esp + 0x30]
push esi
call fcn.0042f62a
mov ecx, dword [ebp + 0x10]
push ecx
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
call fcn.00425305
add esp, 0x14
jmp 0x42f381
push 0
push dword [ebp + 0x10]
push 0
push 0xa
jmp 0x42f0e4
add eax, 0xffffff8c
cmp eax, 0x29
ja case.0x42f0b0.117
movzx eax, byte [eax + 0x42f600]
jmp dword [eax*4 + 0x42f5cc]
movsx eax, word [ebx + 0x1e]
mov ecx, dword [ebx + 0x24]
imul eax, eax, 0x18
add eax, dword [ecx + 0x10]
cmp byte [ecx], dl
jne 0x42f0d4
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], eax
jmp 0x42f381
cmp byte [ecx + 1], dl
je case.0x42f0b0.152
push dword [ebp + 0x10]
push dword [eax + 0xc]
push dword [ecx + 4]
push 0x1c
mov eax, edi
call fcn.00425287
add esp, 0x10
jmp 0x42f381
mov eax, dword [ebx + 0x18]
cmp eax, edx
jge 0x42f103
movsx eax, word [ebx + 0x1c]
add eax, dword [esi + 0x50]
jmp 0x42f0cb
push dword [ebp + 0x10]
push eax
movsx eax, word [ebx + 0x1c]
push eax
push dword [ebx + 0x28]
mov eax, esi
call fcn.0042eb5d
add esp, 0x10
jmp 0x42f0cb
push dword [ebp + 0x10]
mov eax, ebx
push 0
push esi
call fcn.0042e943
add esp, 0xc
jmp 0x42f381
mov edi, dword [ebx + 4]
inc edi
inc edi
mov ecx, edi
call fcn.00418872
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
dec ebx
push ebx
call fcn.00418f1c
pop ecx
push 0xffffffffffffffff
push eax
mov eax, ebx
push 0
push dword [ebp + 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
push 0xb
push dword [esp + 0x2c]
jmp 0x42f05a
movsx eax, word [ebx + 0x1c]
push dword [ebp + 0x10]
push eax
push 0xc
mov eax, edi
call fcn.00425305
mov ebx, dword [ebx + 4]
add esp, 0xc
cmp byte [ebx + 1], 0
je 0x42f381
push 0
push ebx
push edi
or eax, 0xffffffff
call fcn.004256a2
jmp 0x42f128
mov eax, dword [ebx + 0x18]
jmp 0x42f0cb
push dword [ebx + 8]
lea edi, [esp + 0x30]
push esi
call fcn.0042f62a
push dword [ebx + 0xc]
lea edi, [esp + 0x40]
push esi
mov dword [esp + 0x30], eax
call fcn.0042f62a
push 0x90
push dword [ebp + 0x10]
push eax
push dword [esp + 0x3c]
xor eax, eax
cmp dword [esp + 0x2c], 0x46
sete al
add eax, 0x4b
push eax
jmp 0x42ef2a
mov eax, dword [ebx + 8]
cmp byte [eax], 0x81
jne 0x42f1f4
push dword [ebp + 0x10]
push 1
push esi
call fcn.0042e943
add esp, 0xc
jmp 0x42f230
mov eax, esi
call fcn.0043012e
push 0
push eax
mov dword [esp + 0x34], eax
push 0
push 7
mov eax, edi
call fcn.00425287
push dword [ebx + 8]
lea edi, [esp + 0x48]
push esi
call fcn.0042f62a
push dword [ebp + 0x10]
push dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x38]
push 0x57
call fcn.00425287
add esp, 0x28
mov eax, dword [ebp + 0x10]
jmp 0x42f0cb
mov eax, dword [ebx + 0x24]
cmp eax, edx
jne 0x42f255
push dword [ebx + 4]
mov edi, esi
push str.misuse_of_aggregate:__s__
call fcn.004188fe
pop ecx
pop ecx
jmp 0x42f381
movsx ecx, word [ebx + 0x1e]
mov eax, dword [eax + 0x20]
shl ecx, 4
mov eax, dword [ecx + eax + 8]
jmp 0x42f0cb
test word [ebx + 2], 0x2000
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x49]
mov dword [esp + 0x18], edx
mov byte [esp + 0x24], al
mov dword [esp + 0x1c], edx
je 0x42f2d0
mov dword [esp + 0xc], edx
mov dword [esp + 0x28], edx
mov edi, dword [ebx + 4]
mov ecx, edi
call fcn.00418872
push 0
push dword [esp + 0x28]
mov dword [esp + 0x28], eax
push dword [esp + 0x30]
push edi
push dword [esp + 0x20]
call fcn.00434d28
add esp, 0x14
test eax, eax
mov dword [esp + 0x24], eax
jne 0x42f2e3
push edi
push dword [esp + 0x24]
mov edi, esi
push str.unknown_function:__.s__
call fcn.004188fe
jmp 0x42f128
mov eax, dword [ebx + 0x10]
cmp eax, edx
mov dword [esp + 0xc], eax
je 0x42f289
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x42f28d
test byte [eax + 3], 0x40
je 0x42f3a0
mov eax, dword [esp + 0x14]
call fcn.0042537d
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, esi
call fcn.0042f665
mov eax, dword [esp + 0x28]
cmp eax, 1
jle 0x42f371
dec eax
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x18], eax
mov ebx, esi
push dword [esp + 0x1c]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push edi
push 0x4a
call fcn.00425305
xor ecx, ecx
add esp, 0xc
inc ecx
mov esi, edi
mov eax, ebx
call fcn.0042eaac
inc dword [ebx + 0x54]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + ecx]
mov ecx, ebx
call fcn.0042f665
mov eax, ebx
call fcn.0042ead5
add dword [esp + 0x10], 0x14
dec dword [esp + 0x18]
jne 0x42f325
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
call fcn.004253ca
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
mov eax, esi
call fcn.00430149
mov edx, dword [esp + 0x34]
call fcn.00430149
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 0
mov edi, dword [ebp + 8]
je 0x42f3d7
mov esi, dword [esp + 0x28]
mov ecx, edi
call fcn.0043017d
mov esi, dword [esp + 0xc]
inc dword [edi + 0x54]
mov ecx, eax
push 1
push edi
mov eax, esi
mov dword [esp + 0x28], ecx
call fcn.0042f77e
pop ecx
pop ecx
mov eax, edi
call fcn.0042ead5
jmp 0x42f3e0
and dword [esp + 0x20], 0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
cmp eax, 2
jl 0x42f3f8
test byte [ebx + 2], 0x80
je 0x42f3f8
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [ecx + 0x14]
jmp 0x42f402
test eax, eax
jle 0x42f416
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [ecx]
push dword [esp + 0x28]
push dword [esp + 0x18]
call fcn.0043f951
mov dword [esp + 0x30], eax
add esp, 0xc
xor ebx, ebx
cmp dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
jle 0x42f47c
cmp dword [esp + 0xc], 0x20
jge 0x42f449
mov eax, dword [esi + 0xc]
push dword [ebx + eax]
xor eax, eax
inc eax
call fcn.0042e010
test eax, eax
pop ecx
je 0x42f449
mov ecx, dword [esp + 0xc]
xor eax, eax
inc eax
shl eax, cl
or dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
test byte [eax + 3], 8
je 0x42f46b
cmp dword [esp + 0x1c], 0
jne 0x42f46b
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ebx]
mov ecx, edi
call fcn.0042d140
mov dword [esp + 0x1c], eax
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add ebx, 0x14
cmp eax, dword [esp + 0x28]
jl 0x42f422
mov eax, dword [esp + 0x24]
test byte [eax + 3], 8
je 0x42f4b1
cmp dword [esp + 0x1c], 0
jne 0x42f498
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x1c], eax
push 0xfffffffffffffffc
push dword [esp + 0x20]
xor eax, eax
push eax
push eax
push eax
push 0x11
push dword [esp + 0x2c]
call fcn.0042531c
add esp, 0x1c
push 0xfffffffffffffffb
push dword [esp + 0x28]
push dword [ebp + 0x10]
push dword [esp + 0x2c]
push dword [esp + 0x28]
push 0x12
push dword [esp + 0x2c]
call fcn.0042531c
mov dl, byte [esp + 0x44]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
call fcn.0042551d
cmp dword [esp + 0x28], 0
je 0x42f37e
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
call fcn.004301a1
mov esi, eax
jmp 0x42f381
push 0
push 0
push ebx
mov ebx, esi
call fcn.0042e438
jmp 0x42ecd7
mov ecx, dword [esp + 0x10]
inc dword [esi + 0x54]
cmp dword [esp + 0x18], 0
mov eax, dword [ecx]
je 0x42f526
mov dword [esp + 0x74], eax
jmp 0x42f52a
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
call fcn.0042537d
push 8
push eax
push dword [esp + 0x24]
mov dword [esp + 0x34], eax
push esi
call fcn.0042fac8
mov eax, dword [esp + 0x20]
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov ecx, esi
call fcn.0042f665
mov eax, dword [esp + 0x24]
push 0
push dword [esp + 0x38]
push 0
push 1
call fcn.00425287
add esp, 0x20
mov eax, esi
call fcn.0042ead5
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
call fcn.004253ca
add dword [esp + 0x10], 0x28
dec dword [esp + 0xc]
jne 0x42f510
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x42f5aa
inc dword [esi + 0x54]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebx + 0xc]
mov ecx, esi
call fcn.0042f665
mov eax, esi
call fcn.0042ead5
jmp 0x42f5bd
push eax
push dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push 0xa
call fcn.00425287
add esp, 0x10
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
jmp 0x42effd