Function at 0x4d67d4
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 0x4d6818
xor eax, eax
jmp 0x4d7283
test ebx, ebx
je 0x4d7255
movzx eax, byte [ebx]
mov dword [esp + 0x14], eax
cmp eax, 0x62
jg 0x4d6d0e
je 0x4d7255
cmp eax, 0x46
jg 0x4d6a6d
je case.0x4d6d21.146
cmp eax, 0x25
jg 0x4d68df
je 0x4d687a
sub eax, 0x13
je 0x4d6cb0
dec eax
je case.0x4d6d21.116
sub eax, 4
jne case.0x4d6d21.117
mov edx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.004d67d4
pop ecx
jmp 0x4d6d3d
mov edx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.004d67d4
pop ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
call fcn.004dae45
movsx ebx, al
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 8]
je 0x4d68b8
push 0
push dword [ebp + 8]
mov ecx, esi
push eax
push 0xf
pop edx
call fcn.004c9cd0
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.004c9cd0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov edx, ebx
mov ecx, edi
push 1
call fcn.004d6616
pop ecx
jmp 0x4d726b
cmp eax, 0x38
je 0x4d69f5
cmp eax, 0x3c
je 0x4d69a5
cmp eax, 0x43
jle case.0x4d6d21.117
cmp eax, 0x45
jle 0x4d6cda
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.004c9daa
mov edx, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x4d6974
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.004d72ee
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 0x4d7217
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 0x4d71ac
mov dword [esp + 0x84], eax
jmp 0x4d71b0
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.004c9cd0
movzx eax, word [ebx + 0x1c]
add esp, 0xc
test ax, ax
js 0x4d7267
cwde
imul ecx, eax, 0x18
mov eax, dword [edi + 0xc]
cmp byte [ecx + eax + 0x16], 0x65
jne 0x4d7267
push 0
push 0
push dword [ebp + 8]
push 0x16
jmp 0x4d725c
cmp dword [edi + 0x1ac], 0
jne 0x4d6a10
push str.RAISE___may_only_be_used_within_a_trigger_program
push edi
call fcn.004b8dec
pop ecx
pop ecx
jmp 0x4d6811
cmp byte [ebx + 1], 2
jne 0x4d6a2a
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 0x4d6a5e
mov ecx, dword [esp + 0x1c]
mov esi, dword [ebx + 4]
push 4
push 0
push 6
pop edx
call fcn.004c9cd0
add esp, 0xc
push 0
mov ecx, dword [esp + 0x1c]
mov edx, eax
push esi
call fcn.004ca128
pop ecx
pop ecx
jmp 0x4d7267
push dword [ebx + 4]
movsx edx, al
mov ecx, edi
call fcn.004dd444
jmp 0x4d6a57
cmp eax, 0x50
jg 0x4d6c78
cmp eax, 0x4b
jge 0x4d6c36
cmp eax, 0x47
je 0x4d6b70
cmp eax, 0x48
je 0x4d6af8
add eax, 0xffffffb7
cmp eax, 1
ja case.0x4d6d21.117
push 0
push ecx
push 1
push 7
pop edx
mov ecx, esi
call fcn.004c9cd0
mov edx, dword [ebx + 8]
lea eax, [esp + 0x34]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004d72ee
mov edx, dword [esp + 0x18]
xor ebx, ebx
pop ecx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.004c9cd0
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.004c9cd0
add esp, 0xc
mov edx, esi
mov ecx, ebx
push dword [ebx + 0x1c]
call fcn.004c9f80
jmp 0x4d6a58
mov ecx, esi
call fcn.004c9daa
mov ecx, dword [esp + 0x18]
mov esi, eax
call fcn.004c9daa
mov ecx, dword [esp + 0x18]
mov edi, eax
push 0
push dword [ebp + 8]
push 0
push 0xa
pop edx
call fcn.004c9cd0
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, ebx
push edi
push esi
call fcn.004d61f9
mov ebx, dword [esp + 0x20]
mov ecx, ebx
push 0
push dword [ebp + 8]
push 1
push 7
pop edx
call fcn.004c9cd0
add esp, 0x14
mov edx, esi
mov ecx, ebx
call fcn.004c9dfa
push 0
push 0
push dword [ebp + 8]
push 0x14
pop edx
call fcn.004c9cd0
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.004c9dfa
jmp 0x4d7267
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.004d72ee
mov ebx, eax
mov edx, esi
pop ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
call fcn.004d72ee
pop ecx
mov ecx, dword [esp + 0x34]
mov edx, eax
call fcn.004d7df3
mov dword [esp + 0x24], eax
call fcn.004d7df3
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.004d4b6a
mov esi, dword [edi + 0x14]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
call fcn.004d7e0f
lea eax, [esp + 0x50]
mov edx, esi
push eax
call fcn.004d72ee
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.004d4b6a
push dword [ebp + 8]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
push edi
push ebx
push 0x45
pop edx
call fcn.004c9cd0
add esp, 0x24
mov edx, ebx
mov ecx, esi
call fcn.004d7e0f
mov edx, edi
call fcn.004d7e0f
jmp 0x4d7267
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004d72ee
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004d72ee
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.004d4b6a
add esp, 0x18
jmp 0x4d7267
cmp eax, 0x52
jl case.0x4d6d21.117
cmp eax, 0x5b
jle 0x4d6cda
cmp eax, 0x5d
je 0x4d6cb0
push 0x5e
pop edx
cmp eax, edx
jne case.0x4d6d21.117
mov esi, dword [ebx + 4]
xor edi, edi
push edi
push ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.004c9cd0
add esp, 0xc
push edi
jmp 0x4d6a4b
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004d72ee
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
pop ecx
push 0
push ebx
push eax
mov ecx, esi
call fcn.004c9cd0
add esp, 0xc
jmp 0x4d726b
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004d72ee
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004d72ee
mov edx, dword [esp + 0x18]
pop ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push esi
push eax
jmp 0x4d725f
add eax, 0xffffff8c
cmp eax, 0x29
ja case.0x4d6d21.117
movzx eax, byte [eax + 0x4d72c4]
jmp dword [eax*4 + 0x4d728c]
movsx eax, word [ebx + 0x1e]
mov edx, dword [ebx + 0x24]
imul eax, eax, 0x18
add eax, dword [edx + 0x10]
cmp byte [edx], 0
jne 0x4d6d44
mov eax, dword [eax + 0x10]
mov ebx, eax
jmp 0x4d726b
cmp byte [edx + 1], 0
je case.0x4d6d21.152
push ecx
push dword [eax + 0xc]
push dword [edx + 4]
push 0x1c
jmp 0x4d725c
cmp dword [ebx + 0x18], 0
movsx eax, word [ebx + 0x1c]
jge 0x4d6d67
add eax, dword [edi + 0x50]
jmp 0x4d6d3d
mov edx, dword [ebx + 0x28]
push ecx
push dword [ebx + 0x18]
mov ecx, edi
push eax
call fcn.004d66e2
add esp, 0xc
jmp 0x4d6d3d
push ecx
push 0
mov edx, ebx
mov ecx, edi
call fcn.004d6482
jmp 0x4d6a57
mov edx, dword [ebx + 4]
push ecx
push 0
mov ecx, esi
call fcn.004d640c
jmp 0x4d6a57
mov ecx, dword [ebx + 4]
add ecx, 2
call fcn.004b8d63
mov ebx, dword [esp + 0x18]
mov edx, ecx
lea esi, [eax - 1]
mov ecx, dword [ebx]
push esi
call fcn.004b9896
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.004c9d47
add esp, 0x14
jmp 0x4d7267
movsx eax, word [ebx + 0x1c]
push 0
push ecx
push eax
push 0xc
pop edx
mov ecx, esi
call fcn.004c9cd0
mov eax, dword [ebx + 4]
add esp, 0xc
cmp byte [eax + 1], 0
je 0x4d7267
push 0
push eax
or edx, 0xffffffff
mov ecx, esi
jmp 0x4d6a52
mov eax, dword [ebx + 0x18]
jmp 0x4d6d3d
mov edx, dword [ebx + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004d72ee
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004d72ee
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 0x4d6c63
mov edx, dword [ebx + 8]
mov al, byte [edx]
cmp al, 0x81
jne 0x4d6e68
push ecx
push 1
mov ecx, edi
call fcn.004d6482
jmp 0x4d6e79
cmp al, 0x82
jne 0x4d6e7d
mov edx, dword [edx + 4]
push ecx
push 1
mov ecx, esi
call fcn.004d640c
pop ecx
pop ecx
jmp 0x4d6ec2
mov ecx, edi
call fcn.004d7df3
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.004c9cd0
mov edx, dword [ebx + 8]
lea eax, [esp + 0x44]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004d72ee
pop ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push esi
push eax
push 0x57
pop edx
call fcn.004c9cd0
add esp, 0xc
mov ebx, dword [ebp + 8]
jmp 0x4d726b
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4d6ee4
push dword [ebx + 4]
push str.misuse_of_aggregate:__s__
push edi
call fcn.004b8dec
jmp 0x4d7264
movsx ecx, word [ebx + 0x1e]
mov eax, dword [eax + 0x20]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 8]
jmp 0x4d6d3d
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 0x4d6f6d
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.004b8d63
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.004dda41
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x4d6f7c
push dword [esp + 0x30]
push dword [esp + 0x48]
push str.unknown_function:__.s__
push edi
call fcn.004b8dec
add esp, 0x10
jmp 0x4d7267
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4d6f1c
mov edx, dword [eax]
jmp 0x4d6f1e
test byte [ecx + 3], 0x40
je 0x4d7018
mov ecx, esi
call fcn.004c9daa
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.004d7327
mov eax, dword [esp + 0x18]
pop ecx
cmp eax, 1
jle 0x4d7008
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.004c9cd0
add esp, 0xc
mov edx, ebx
mov ecx, edi
push 1
call fcn.004d6616
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.004d7327
pop ecx
mov ecx, edi
call fcn.004d6652
add dword [esp + 0x20], 0x14
dec dword [esp + 0x1c]
jne 0x4d6fbc
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.004c9dfa
jmp 0x4d726b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4d7053
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004d7e43
mov edx, dword [esp + 0x2c]
mov ecx, edi
inc dword [edi + 0x54]
push 1
push eax
mov dword [esp + 0x24], eax
call fcn.004d7453
pop ecx
pop ecx
mov ecx, edi
call fcn.004d6652
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
jmp 0x4d7058
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 2
jl 0x4d7083
test byte [ebx + 2], 0x80
je 0x4d7083
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.004edef5
pop ecx
pop ecx
mov dword [esp + 0x3c], eax
jmp 0x4d7096
mov ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x4d7092
mov eax, dword [eax + 0xc]
push dword [eax]
jmp 0x4d706f
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x30], ecx
test ebx, ebx
jle 0x4d711c
mov esi, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, 0x20
jge 0x4d70da
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, dword [esp + 0x14]
inc edx
mov ecx, dword [ecx + eax]
call fcn.004d5994
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x4d70d6
xor eax, eax
inc eax
shl eax, cl
or dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test byte [eax + 3], 8
je 0x4d7108
cmp dword [esp + 0x40], 0
jne 0x4d7108
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + ecx]
mov ecx, edi
call fcn.004d49d5
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 0x4d70aa
mov esi, dword [esp + 0x18]
test byte [eax + 3], 8
je 0x4d715c
cmp dword [esp + 0x40], 0
jne 0x4d7134
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.004c9cd0
add esp, 0xc
mov edx, eax
mov ecx, esi
push 0xfffffffffffffffc
push dword [esp + 0x44]
call fcn.004ca128
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.004c9d47
add esp, 0x14
mov dl, bl
mov ecx, esi
call fcn.004c9f97
test ebx, ebx
je 0x4d7267
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebx
call fcn.004d7e6e
jmp 0x4d6a58
push 0
push 0
mov edx, ebx
mov ecx, edi
call fcn.004d5df0
pop ecx
jmp 0x4d6874
mov dword [esp + 0x1c], eax
mov ecx, esi
call fcn.004c9daa
mov edx, dword [esp + 0x1c]
mov esi, eax
push 8
push esi
mov ecx, edi
call fcn.004d7797
push dword [ebp + 8]
mov edx, dword [ebx + 0x14]
mov ecx, edi
call fcn.004d7327
mov ecx, dword [esp + 0x24]
add esp, 0xc
xor edx, edx
inc edx
push 0
push dword [esp + 0x34]
push 0
call fcn.004c9cd0
add esp, 0xc
mov ecx, edi
call fcn.004d6652
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004c9dfa
mov edx, dword [esp + 0x20]
add ebx, 0x28
dec dword [esp + 0x24]
jne 0x4d698c
mov ebx, dword [esp + 0x2c]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x4d7238
inc dword [edi + 0x54]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [ebx + 0xc]
call fcn.004d7327
pop ecx
mov ecx, edi
call fcn.004d6652
jmp 0x4d724a
push eax
push dword [ebp + 8]
mov ecx, esi
push eax
push 0xa
pop edx
call fcn.004c9cd0
add esp, 0xc
mov edx, dword [esp + 0x30]
mov ecx, esi
jmp 0x4d6b66
push 0
push ecx
push 0
push 0xa
mov ecx, esi
pop edx
call fcn.004c9cd0
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
call fcn.004d7e0f
mov edx, dword [esp + 0x38]
call fcn.004d7e0f
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret