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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
and dword [esp + 0x1c], 0
and dword [esp + 0x2c], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edi
mov esi, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
test esi, esi
jne 0x4cc78d
xor eax, eax
jmp 0x4cd1f8
test ebx, ebx
je 0x4cd1ca
movzx eax, byte [ebx]
mov dword [esp + 0x14], eax
cmp eax, 0x62
jg 0x4ccc83
je 0x4cd1ca
cmp eax, 0x46
jg 0x4cc9e2
je case.0x4ccc96.146
cmp eax, 0x25
jg 0x4cc854
je 0x4cc7ef
sub eax, 0x13
je 0x4ccc25
dec eax
je case.0x4ccc96.116
sub eax, 4
jne case.0x4ccc96.117
mov edx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.004cc749
pop ecx
jmp 0x4cccb2
mov edx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.004cc749
pop ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
call fcn.004d0dba
movsx ebx, al
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 8]
je 0x4cc82d
push 0
push dword [ebp + 8]
mov ecx, esi
push eax
push 0xf
pop edx
call fcn.004bfbef
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x10], eax
push 0
push 0
push eax
lea edx, [ebx + 0x2c]
mov ecx, esi
call fcn.004bfbef
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov edx, ebx
mov ecx, edi
push 1
call fcn.004cc58b
pop ecx
jmp 0x4cd1e0
cmp eax, 0x38
je 0x4cc96a
cmp eax, 0x3c
je 0x4cc91a
cmp eax, 0x43
jle case.0x4ccc96.117
cmp eax, 0x45
jle 0x4ccc4f
mov eax, dword [ebx + 0x10]
and dword [esp + 0x1c], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x40], ecx
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.004bfcc9
mov edx, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x4cc8e9
push 0xc
pop ecx
mov esi, edx
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004cd263
and dword [esp + 0x2c], 0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x7c]
pop ecx
mov byte [esp + 0x48], 0x84
mov byte [esp + 0x78], 0x4c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x4cd18c
mov ebx, dword [esp + 0x40]
dec eax
shr eax, 1
inc eax
mov dword [esp + 0x24], eax
inc dword [edi + 0x54]
mov eax, dword [ebx]
test edx, edx
je 0x4cd121
mov dword [esp + 0x84], eax
jmp 0x4cd125
mov edi, dword [ebx + 0x28]
movsx eax, word [ebx + 0x1c]
push 0
push ecx
mov ecx, dword [edi + 8]
inc eax
inc ecx
imul ecx, dword [ebx + 0x18]
add eax, ecx
mov ecx, esi
push eax
push 0x6d
pop edx
call fcn.004bfbef
movzx eax, word [ebx + 0x1c]
add esp, 0xc
test ax, ax
js 0x4cd1dc
cwde
imul ecx, eax, 0x18
mov eax, dword [edi + 0xc]
cmp byte [ecx + eax + 0x16], 0x65
jne 0x4cd1dc
push 0
push 0
push dword [ebp + 8]
push 0x16
jmp 0x4cd1d1
cmp dword [edi + 0x1ac], 0
jne 0x4cc985
push str.RAISE___may_only_be_used_within_a_trigger_program
push edi
call fcn.004aec80
pop ecx
pop ecx
jmp 0x4cc786
cmp byte [ebx + 1], 2
jne 0x4cc99f
mov eax, dword [edi + 0x1a8]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x159], 1
mov al, byte [ebx + 1]
push 0
cmp al, 4
jne 0x4cc9d3
mov ecx, dword [esp + 0x1c]
mov esi, dword [ebx + 4]
push 4
push 0
push 6
pop edx
call fcn.004bfbef
add esp, 0xc
push 0
mov ecx, dword [esp + 0x1c]
mov edx, eax
push esi
call fcn.004c0047
pop ecx
pop ecx
jmp 0x4cd1dc
push dword [ebx + 4]
movsx edx, al
mov ecx, edi
call fcn.004d33b9
jmp 0x4cc9cc
cmp eax, 0x50
jg 0x4ccbed
cmp eax, 0x4b
jge 0x4ccbab
cmp eax, 0x47
je 0x4ccae5
cmp eax, 0x48
je 0x4cca6d
add eax, 0xffffffb7
cmp eax, 1
ja case.0x4ccc96.117
push 0
push ecx
push 1
push 7
pop edx
mov ecx, esi
call fcn.004bfbef
mov edx, dword [ebx + 8]
lea eax, [esp + 0x34]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004cd263
mov edx, dword [esp + 0x18]
xor ebx, ebx
pop ecx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.004bfbef
add esp, 0xc
mov esi, eax
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x14
pop edx
call fcn.004bfbef
add esp, 0xc
mov edx, esi
mov ecx, ebx
push dword [ebx + 0x1c]
call fcn.004bfe9f
jmp 0x4cc9cd
mov ecx, esi
call fcn.004bfcc9
mov ecx, dword [esp + 0x18]
mov esi, eax
call fcn.004bfcc9
mov ecx, dword [esp + 0x18]
mov edi, eax
push 0
push dword [ebp + 8]
push 0
push 0xa
pop edx
call fcn.004bfbef
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, ebx
push edi
push esi
call fcn.004cc164
mov ebx, dword [esp + 0x20]
mov ecx, ebx
push 0
push dword [ebp + 8]
push 1
push 7
pop edx
call fcn.004bfbef
add esp, 0x14
mov edx, esi
mov ecx, ebx
call fcn.004bfd19
push 0
push 0
push dword [ebp + 8]
push 0x14
pop edx
call fcn.004bfbef
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.004bfd19
jmp 0x4cd1dc
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov edx, ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov edi, dword [eax + 0xc]
lea eax, [esp + 0x28]
push eax
mov esi, dword [edi]
call fcn.004cd263
mov ebx, eax
mov edx, esi
pop ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
call fcn.004cd263
pop ecx
mov ecx, dword [esp + 0x34]
mov edx, eax
call fcn.004cdd68
mov dword [esp + 0x24], eax
call fcn.004cdd68
push 0x10
push dword [esp + 0x28]
mov dword [esp + 0x28], eax
push edx
mov edx, dword [esp + 0x28]
push ebx
push 0x50
push esi
call fcn.004caac5
mov esi, dword [edi + 0x14]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
call fcn.004cdd84
lea eax, [esp + 0x50]
mov edx, esi
push eax
call fcn.004cd263
mov edi, dword [esp + 0x3c]
add esp, 0x1c
mov edx, dword [esp + 0x1c]
push 0x10
push edi
push eax
push ebx
push 0x4e
push esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.004caac5
push dword [ebp + 8]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
push edi
push ebx
push 0x45
pop edx
call fcn.004bfbef
add esp, 0x24
mov edx, ebx
mov ecx, esi
call fcn.004cdd84
mov edx, edi
call fcn.004cdd84
jmp 0x4cd1dc
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004cd263
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004cd263
pop ecx
push 0x10
push dword [ebp + 8]
push eax
push esi
push dword [esp + 0x24]
push dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov ecx, edi
call fcn.004caac5
add esp, 0x18
jmp 0x4cd1dc
cmp eax, 0x52
jl case.0x4ccc96.117
cmp eax, 0x5b
jle 0x4ccc4f
cmp eax, 0x5d
je 0x4ccc25
push 0x5e
pop edx
cmp eax, edx
jne case.0x4ccc96.117
mov esi, dword [ebx + 4]
xor edi, edi
push edi
push ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.004bfbef
add esp, 0xc
push edi
jmp 0x4cc9c0
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004cd263
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
pop ecx
push 0
push ebx
push eax
mov ecx, esi
call fcn.004bfbef
add esp, 0xc
jmp 0x4cd1e0
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004cd263
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004cd263
mov edx, dword [esp + 0x18]
pop ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push esi
push eax
jmp 0x4cd1d4
add eax, 0xffffff8c
cmp eax, 0x29
ja case.0x4ccc96.117
movzx eax, byte [eax + 0x4cd239]
jmp dword [eax*4 + 0x4cd201]
movsx eax, word [ebx + 0x1e]
mov edx, dword [ebx + 0x24]
imul eax, eax, 0x18
add eax, dword [edx + 0x10]
cmp byte [edx], 0
jne 0x4cccb9
mov eax, dword [eax + 0x10]
mov ebx, eax
jmp 0x4cd1e0
cmp byte [edx + 1], 0
je case.0x4ccc96.152
push ecx
push dword [eax + 0xc]
push dword [edx + 4]
push 0x1c
jmp 0x4cd1d1
cmp dword [ebx + 0x18], 0
movsx eax, word [ebx + 0x1c]
jge 0x4cccdc
add eax, dword [edi + 0x50]
jmp 0x4cccb2
mov edx, dword [ebx + 0x28]
push ecx
push dword [ebx + 0x18]
mov ecx, edi
push eax
call fcn.004cc657
add esp, 0xc
jmp 0x4cccb2
push ecx
push 0
mov edx, ebx
mov ecx, edi
call fcn.004cc3f7
jmp 0x4cc9cc
mov edx, dword [ebx + 4]
push ecx
push 0
mov ecx, esi
call fcn.004cc377
jmp 0x4cc9cc
mov ecx, dword [ebx + 4]
add ecx, 2
call fcn.004aebf7
mov ebx, dword [esp + 0x18]
mov edx, ecx
lea esi, [eax - 1]
mov ecx, dword [ebx]
push esi
call fcn.004af742
pop ecx
push 0xffffffffffffffff
push eax
push 0
push dword [ebp + 8]
mov eax, esi
mov ecx, ebx
cdq
sub eax, edx
sar eax, 1
push eax
push 0xb
pop edx
call fcn.004bfc66
add esp, 0x14
jmp 0x4cd1dc
movsx eax, word [ebx + 0x1c]
push 0
push ecx
push eax
push 0xc
pop edx
mov ecx, esi
call fcn.004bfbef
mov eax, dword [ebx + 4]
add esp, 0xc
cmp byte [eax + 1], 0
je 0x4cd1dc
push 0
push eax
or edx, 0xffffffff
mov ecx, esi
jmp 0x4cc9c7
mov eax, dword [ebx + 0x18]
jmp 0x4cccb2
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004cd263
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004cd263
pop ecx
push 0x90
push dword [ebp + 8]
push eax
xor eax, eax
cmp dword [esp + 0x20], 0x46
push esi
sete al
add eax, 0x4b
push eax
jmp 0x4ccbd8
mov edx, dword [ebx + 8]
mov al, byte [edx]
cmp al, 0x81
jne 0x4ccddd
push ecx
push 1
mov ecx, edi
call fcn.004cc3f7
jmp 0x4ccdee
cmp al, 0x82
jne 0x4ccdf2
mov edx, dword [edx + 4]
push ecx
push 1
mov ecx, esi
call fcn.004cc377
pop ecx
pop ecx
jmp 0x4cce37
mov ecx, edi
call fcn.004cdd68
mov ecx, dword [esp + 0x18]
mov esi, eax
push 0
push esi
push 0
push 7
pop edx
mov dword [esp + 0x34], esi
call fcn.004bfbef
mov edx, dword [ebx + 8]
lea eax, [esp + 0x44]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004cd263
pop ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push esi
push eax
push 0x57
pop edx
call fcn.004bfbef
add esp, 0xc
mov ebx, dword [ebp + 8]
jmp 0x4cd1e0
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4cce59
push dword [ebx + 4]
push str.misuse_of_aggregate:__s__
push edi
call fcn.004aec80
jmp 0x4cd1d9
movsx ecx, word [ebx + 0x1e]
mov eax, dword [eax + 0x20]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 8]
jmp 0x4cccb2
mov eax, dword [edx + 8]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4d]
mov byte [esp + 0x1c], al
mov eax, 0x2000
test word [ebx + 2], ax
je 0x4ccee2
mov dword [esp + 0x2c], ecx
mov edx, ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ecx
call fcn.004aebf7
push 0
push dword [esp + 0x20]
mov dword [esp + 0x4c], eax
push edx
mov edx, ecx
mov ecx, dword [esp + 0x2c]
push eax
call fcn.004d39b6
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x4ccef1
push dword [esp + 0x30]
push dword [esp + 0x48]
push str.unknown_function:__.s__
push edi
call fcn.004aec80
add esp, 0x10
jmp 0x4cd1dc
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4cce91
mov edx, dword [eax]
jmp 0x4cce93
test byte [ecx + 3], 0x40
je 0x4ccf8d
mov ecx, esi
call fcn.004bfcc9
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov ebx, dword [ebp + 8]
push ebx
mov dword [esp + 0x28], eax
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
call fcn.004cd29c
mov eax, dword [esp + 0x18]
pop ecx
cmp eax, 1
jle 0x4ccf7d
dec eax
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x1c], eax
push 0
push dword [esp + 0x28]
mov ecx, esi
push ebx
push 0x4a
pop edx
call fcn.004bfbef
add esp, 0xc
mov edx, ebx
mov ecx, edi
push 1
call fcn.004cc58b
mov eax, dword [esp + 0x30]
inc dword [edi + 0x54]
pop ecx
push ebx
mov edx, dword [eax + 0xc]
mov ecx, edi
mov eax, dword [esp + 0x24]
mov edx, dword [edx + eax]
call fcn.004cd29c
pop ecx
mov ecx, edi
call fcn.004cc5c7
add dword [esp + 0x20], 0x14
dec dword [esp + 0x1c]
jne 0x4ccf31
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.004bfd19
jmp 0x4cd1e0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ccfc8
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004cddb8
mov edx, dword [esp + 0x2c]
mov ecx, edi
inc dword [edi + 0x54]
push 1
push eax
mov dword [esp + 0x24], eax
call fcn.004cd3c8
pop ecx
pop ecx
mov ecx, edi
call fcn.004cc5c7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
jmp 0x4ccfcd
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 2
jl 0x4ccff8
test byte [ebx + 2], 0x80
je 0x4ccff8
mov eax, dword [eax + 0xc]
mov ebx, dword [esp + 0x14]
push dword [eax + 0x14]
mov edx, ecx
mov ecx, dword [esp + 0x24]
push ebx
call fcn.004e3ef4
pop ecx
pop ecx
mov dword [esp + 0x3c], eax
jmp 0x4cd00b
mov ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x4cd007
mov eax, dword [eax + 0xc]
push dword [eax]
jmp 0x4ccfe4
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x30], ecx
test ebx, ebx
jle 0x4cd091
mov esi, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, 0x20
jge 0x4cd04f
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, dword [esp + 0x14]
inc edx
mov ecx, dword [ecx + eax]
call fcn.004cb8ef
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x4cd04b
xor eax, eax
inc eax
shl eax, cl
or dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test byte [eax + 3], 8
je 0x4cd07d
cmp dword [esp + 0x40], 0
jne 0x4cd07d
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + ecx]
mov ecx, edi
call fcn.004ca930
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
inc ecx
add edx, 0x14
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edx
cmp ecx, ebx
jl 0x4cd01f
mov esi, dword [esp + 0x18]
test byte [eax + 3], 8
je 0x4cd0d1
cmp dword [esp + 0x40], 0
jne 0x4cd0a9
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x40], eax
push 0
push 0
push 0
push 0x11
pop edx
mov ecx, esi
call fcn.004bfbef
add esp, 0xc
mov edx, eax
mov ecx, esi
push 0xfffffffffffffffc
push dword [esp + 0x44]
call fcn.004c0047
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
push 0xfffffffffffffffb
push eax
push dword [ebp + 8]
mov ecx, esi
push dword [esp + 0x28]
push dword [esp + 0x34]
push 0x12
pop edx
call fcn.004bfc66
add esp, 0x14
mov dl, bl
mov ecx, esi
call fcn.004bfeb6
test ebx, ebx
je 0x4cd1dc
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebx
call fcn.004cdde3
jmp 0x4cc9cd
push 0
push 0
mov edx, ebx
mov ecx, edi
call fcn.004cbd5b
pop ecx
jmp 0x4cc7e9
mov dword [esp + 0x1c], eax
mov ecx, esi
call fcn.004bfcc9
mov edx, dword [esp + 0x1c]
mov esi, eax
push 8
push esi
mov ecx, edi
call fcn.004cd70c
push dword [ebp + 8]
mov edx, dword [ebx + 0x14]
mov ecx, edi
call fcn.004cd29c
mov ecx, dword [esp + 0x24]
add esp, 0xc
xor edx, edx
inc edx
push 0
push dword [esp + 0x34]
push 0
call fcn.004bfbef
add esp, 0xc
mov ecx, edi
call fcn.004cc5c7
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004bfd19
mov edx, dword [esp + 0x20]
add ebx, 0x28
dec dword [esp + 0x24]
jne 0x4cc901
mov ebx, dword [esp + 0x2c]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x4cd1ad
inc dword [edi + 0x54]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [ebx + 0xc]
call fcn.004cd29c
pop ecx
mov ecx, edi
call fcn.004cc5c7
jmp 0x4cd1bf
push eax
push dword [ebp + 8]
mov ecx, esi
push eax
push 0xa
pop edx
call fcn.004bfbef
add esp, 0xc
mov edx, dword [esp + 0x30]
mov ecx, esi
jmp 0x4ccadb
push 0
push ecx
push 0
push 0xa
mov ecx, esi
pop edx
call fcn.004bfbef
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
call fcn.004cdd84
mov edx, dword [esp + 0x38]
call fcn.004cdd84
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret