Function at 0x4d4a94
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 0x4d4ad8
xor eax, eax
jmp 0x4d5543
test ebx, ebx
je 0x4d5515
movzx eax, byte [ebx]
mov dword [esp + 0x14], eax
cmp eax, 0x62
jg 0x4d4fce
je 0x4d5515
cmp eax, 0x46
jg 0x4d4d2d
je case.0x4d4fe1.146
cmp eax, 0x25
jg 0x4d4b9f
je 0x4d4b3a
sub eax, 0x13
je 0x4d4f70
dec eax
je case.0x4d4fe1.116
sub eax, 4
jne case.0x4d4fe1.117
mov edx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.004d4a94
pop ecx
jmp 0x4d4ffd
mov edx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.004d4a94
pop ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
call fcn.004d9105
movsx ebx, al
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 8]
je 0x4d4b78
push 0
push dword [ebp + 8]
mov ecx, esi
push eax
push 0xf
pop edx
call fcn.004c7f90
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.004c7f90
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov edx, ebx
mov ecx, edi
push 1
call fcn.004d48d6
pop ecx
jmp 0x4d552b
cmp eax, 0x38
je 0x4d4cb5
cmp eax, 0x3c
je 0x4d4c65
cmp eax, 0x43
jle case.0x4d4fe1.117
cmp eax, 0x45
jle 0x4d4f9a
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.004c806a
mov edx, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x4d4c34
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.004d55ae
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 0x4d54d7
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 0x4d546c
mov dword [esp + 0x84], eax
jmp 0x4d5470
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.004c7f90
movzx eax, word [ebx + 0x1c]
add esp, 0xc
test ax, ax
js 0x4d5527
cwde
imul ecx, eax, 0x18
mov eax, dword [edi + 0xc]
cmp byte [ecx + eax + 0x16], 0x65
jne 0x4d5527
push 0
push 0
push dword [ebp + 8]
push 0x16
jmp 0x4d551c
cmp dword [edi + 0x1ac], 0
jne 0x4d4cd0
push str.RAISE___may_only_be_used_within_a_trigger_program
push edi
call fcn.004b70ac
pop ecx
pop ecx
jmp 0x4d4ad1
cmp byte [ebx + 1], 2
jne 0x4d4cea
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 0x4d4d1e
mov ecx, dword [esp + 0x1c]
mov esi, dword [ebx + 4]
push 4
push 0
push 6
pop edx
call fcn.004c7f90
add esp, 0xc
push 0
mov ecx, dword [esp + 0x1c]
mov edx, eax
push esi
call fcn.004c83e8
pop ecx
pop ecx
jmp 0x4d5527
push dword [ebx + 4]
movsx edx, al
mov ecx, edi
call fcn.004db704
jmp 0x4d4d17
cmp eax, 0x50
jg 0x4d4f38
cmp eax, 0x4b
jge 0x4d4ef6
cmp eax, 0x47
je 0x4d4e30
cmp eax, 0x48
je 0x4d4db8
add eax, 0xffffffb7
cmp eax, 1
ja case.0x4d4fe1.117
push 0
push ecx
push 1
push 7
pop edx
mov ecx, esi
call fcn.004c7f90
mov edx, dword [ebx + 8]
lea eax, [esp + 0x34]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004d55ae
mov edx, dword [esp + 0x18]
xor ebx, ebx
pop ecx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.004c7f90
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.004c7f90
add esp, 0xc
mov edx, esi
mov ecx, ebx
push dword [ebx + 0x1c]
call fcn.004c8240
jmp 0x4d4d18
mov ecx, esi
call fcn.004c806a
mov ecx, dword [esp + 0x18]
mov esi, eax
call fcn.004c806a
mov ecx, dword [esp + 0x18]
mov edi, eax
push 0
push dword [ebp + 8]
push 0
push 0xa
pop edx
call fcn.004c7f90
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, ebx
push edi
push esi
call fcn.004d44b9
mov ebx, dword [esp + 0x20]
mov ecx, ebx
push 0
push dword [ebp + 8]
push 1
push 7
pop edx
call fcn.004c7f90
add esp, 0x14
mov edx, esi
mov ecx, ebx
call fcn.004c80ba
push 0
push 0
push dword [ebp + 8]
push 0x14
pop edx
call fcn.004c7f90
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.004c80ba
jmp 0x4d5527
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.004d55ae
mov ebx, eax
mov edx, esi
pop ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
call fcn.004d55ae
pop ecx
mov ecx, dword [esp + 0x34]
mov edx, eax
call fcn.004d60b3
mov dword [esp + 0x24], eax
call fcn.004d60b3
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.004d2e2a
mov esi, dword [edi + 0x14]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
call fcn.004d60cf
lea eax, [esp + 0x50]
mov edx, esi
push eax
call fcn.004d55ae
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.004d2e2a
push dword [ebp + 8]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
push edi
push ebx
push 0x45
pop edx
call fcn.004c7f90
add esp, 0x24
mov edx, ebx
mov ecx, esi
call fcn.004d60cf
mov edx, edi
call fcn.004d60cf
jmp 0x4d5527
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004d55ae
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004d55ae
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.004d2e2a
add esp, 0x18
jmp 0x4d5527
cmp eax, 0x52
jl case.0x4d4fe1.117
cmp eax, 0x5b
jle 0x4d4f9a
cmp eax, 0x5d
je 0x4d4f70
push 0x5e
pop edx
cmp eax, edx
jne case.0x4d4fe1.117
mov esi, dword [ebx + 4]
xor edi, edi
push edi
push ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.004c7f90
add esp, 0xc
push edi
jmp 0x4d4d0b
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004d55ae
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
pop ecx
push 0
push ebx
push eax
mov ecx, esi
call fcn.004c7f90
add esp, 0xc
jmp 0x4d552b
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004d55ae
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004d55ae
mov edx, dword [esp + 0x18]
pop ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push esi
push eax
jmp 0x4d551f
add eax, 0xffffff8c
cmp eax, 0x29
ja case.0x4d4fe1.117
movzx eax, byte [eax + 0x4d5584]
jmp dword [eax*4 + 0x4d554c]
movsx eax, word [ebx + 0x1e]
mov edx, dword [ebx + 0x24]
imul eax, eax, 0x18
add eax, dword [edx + 0x10]
cmp byte [edx], 0
jne 0x4d5004
mov eax, dword [eax + 0x10]
mov ebx, eax
jmp 0x4d552b
cmp byte [edx + 1], 0
je case.0x4d4fe1.152
push ecx
push dword [eax + 0xc]
push dword [edx + 4]
push 0x1c
jmp 0x4d551c
cmp dword [ebx + 0x18], 0
movsx eax, word [ebx + 0x1c]
jge 0x4d5027
add eax, dword [edi + 0x50]
jmp 0x4d4ffd
mov edx, dword [ebx + 0x28]
push ecx
push dword [ebx + 0x18]
mov ecx, edi
push eax
call fcn.004d49a2
add esp, 0xc
jmp 0x4d4ffd
push ecx
push 0
mov edx, ebx
mov ecx, edi
call fcn.004d4742
jmp 0x4d4d17
mov edx, dword [ebx + 4]
push ecx
push 0
mov ecx, esi
call fcn.004d46cc
jmp 0x4d4d17
mov ecx, dword [ebx + 4]
add ecx, 2
call fcn.004b7023
mov ebx, dword [esp + 0x18]
mov edx, ecx
lea esi, [eax - 1]
mov ecx, dword [ebx]
push esi
call fcn.004b7b56
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.004c8007
add esp, 0x14
jmp 0x4d5527
movsx eax, word [ebx + 0x1c]
push 0
push ecx
push eax
push 0xc
pop edx
mov ecx, esi
call fcn.004c7f90
mov eax, dword [ebx + 4]
add esp, 0xc
cmp byte [eax + 1], 0
je 0x4d5527
push 0
push eax
or edx, 0xffffffff
mov ecx, esi
jmp 0x4d4d12
mov eax, dword [ebx + 0x18]
jmp 0x4d4ffd
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004d55ae
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004d55ae
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 0x4d4f23
mov edx, dword [ebx + 8]
mov al, byte [edx]
cmp al, 0x81
jne 0x4d5128
push ecx
push 1
mov ecx, edi
call fcn.004d4742
jmp 0x4d5139
cmp al, 0x82
jne 0x4d513d
mov edx, dword [edx + 4]
push ecx
push 1
mov ecx, esi
call fcn.004d46cc
pop ecx
pop ecx
jmp 0x4d5182
mov ecx, edi
call fcn.004d60b3
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.004c7f90
mov edx, dword [ebx + 8]
lea eax, [esp + 0x44]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004d55ae
pop ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push esi
push eax
push 0x57
pop edx
call fcn.004c7f90
add esp, 0xc
mov ebx, dword [ebp + 8]
jmp 0x4d552b
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4d51a4
push dword [ebx + 4]
push str.misuse_of_aggregate:__s__
push edi
call fcn.004b70ac
jmp 0x4d5524
movsx ecx, word [ebx + 0x1e]
mov eax, dword [eax + 0x20]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 8]
jmp 0x4d4ffd
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 0x4d522d
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.004b7023
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.004dbd01
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x4d523c
push dword [esp + 0x30]
push dword [esp + 0x48]
push str.unknown_function:__.s__
push edi
call fcn.004b70ac
add esp, 0x10
jmp 0x4d5527
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4d51dc
mov edx, dword [eax]
jmp 0x4d51de
test byte [ecx + 3], 0x40
je 0x4d52d8
mov ecx, esi
call fcn.004c806a
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.004d55e7
mov eax, dword [esp + 0x18]
pop ecx
cmp eax, 1
jle 0x4d52c8
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.004c7f90
add esp, 0xc
mov edx, ebx
mov ecx, edi
push 1
call fcn.004d48d6
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.004d55e7
pop ecx
mov ecx, edi
call fcn.004d4912
add dword [esp + 0x20], 0x14
dec dword [esp + 0x1c]
jne 0x4d527c
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.004c80ba
jmp 0x4d552b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4d5313
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004d6103
mov edx, dword [esp + 0x2c]
mov ecx, edi
inc dword [edi + 0x54]
push 1
push eax
mov dword [esp + 0x24], eax
call fcn.004d5713
pop ecx
pop ecx
mov ecx, edi
call fcn.004d4912
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
jmp 0x4d5318
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 2
jl 0x4d5343
test byte [ebx + 2], 0x80
je 0x4d5343
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.004ec1b5
pop ecx
pop ecx
mov dword [esp + 0x3c], eax
jmp 0x4d5356
mov ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x4d5352
mov eax, dword [eax + 0xc]
push dword [eax]
jmp 0x4d532f
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x30], ecx
test ebx, ebx
jle 0x4d53dc
mov esi, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, 0x20
jge 0x4d539a
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, dword [esp + 0x14]
inc edx
mov ecx, dword [ecx + eax]
call fcn.004d3c54
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x4d5396
xor eax, eax
inc eax
shl eax, cl
or dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test byte [eax + 3], 8
je 0x4d53c8
cmp dword [esp + 0x40], 0
jne 0x4d53c8
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + ecx]
mov ecx, edi
call fcn.004d2c95
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 0x4d536a
mov esi, dword [esp + 0x18]
test byte [eax + 3], 8
je 0x4d541c
cmp dword [esp + 0x40], 0
jne 0x4d53f4
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.004c7f90
add esp, 0xc
mov edx, eax
mov ecx, esi
push 0xfffffffffffffffc
push dword [esp + 0x44]
call fcn.004c83e8
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.004c8007
add esp, 0x14
mov dl, bl
mov ecx, esi
call fcn.004c8257
test ebx, ebx
je 0x4d5527
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebx
call fcn.004d612e
jmp 0x4d4d18
push 0
push 0
mov edx, ebx
mov ecx, edi
call fcn.004d40b0
pop ecx
jmp 0x4d4b34
mov dword [esp + 0x1c], eax
mov ecx, esi
call fcn.004c806a
mov edx, dword [esp + 0x1c]
mov esi, eax
push 8
push esi
mov ecx, edi
call fcn.004d5a57
push dword [ebp + 8]
mov edx, dword [ebx + 0x14]
mov ecx, edi
call fcn.004d55e7
mov ecx, dword [esp + 0x24]
add esp, 0xc
xor edx, edx
inc edx
push 0
push dword [esp + 0x34]
push 0
call fcn.004c7f90
add esp, 0xc
mov ecx, edi
call fcn.004d4912
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004c80ba
mov edx, dword [esp + 0x20]
add ebx, 0x28
dec dword [esp + 0x24]
jne 0x4d4c4c
mov ebx, dword [esp + 0x2c]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x4d54f8
inc dword [edi + 0x54]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [ebx + 0xc]
call fcn.004d55e7
pop ecx
mov ecx, edi
call fcn.004d4912
jmp 0x4d550a
push eax
push dword [ebp + 8]
mov ecx, esi
push eax
push 0xa
pop edx
call fcn.004c7f90
add esp, 0xc
mov edx, dword [esp + 0x30]
mov ecx, esi
jmp 0x4d4e26
push 0
push ecx
push 0
push 0xa
mov ecx, esi
pop edx
call fcn.004c7f90
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
call fcn.004d60cf
mov edx, dword [esp + 0x38]
call fcn.004d60cf
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret