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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx]
push ebx
mov ebx, dword [edx + 0xc]
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ecx
cmp ebx, edi
jne 0x4b1cb7
xor eax, eax
jmp 0x4b2763
mov esi, dword [ebp + 0xc]
cmp esi, edi
jne 0x4b1cc6
push 0x62
pop eax
jmp 0x4b2276
movzx eax, byte [esi]
cmp eax, 0x5d
mov dword [esp + 0xc], eax
jg 0x4b2265
je 0x4b223c
cmp eax, 0x45
jg 0x4b1ef7
je 0x4b1e24
cmp eax, 0x13
je 0x4b223c
cmp eax, 0x14
je 0x4b22e9
cmp eax, 0x18
je 0x4b1e0e
cmp eax, 0x24
je 0x4b1db1
cmp eax, 0x36
je 0x4b1d61
cmp eax, 0x41
jle 0x4b2359
cmp eax, 0x43
jg 0x4b2359
push dword [esi + 8]
lea edi, [esp + 0x30]
push edx
call fcn.004b276a
push dword [esi + 0xc]
lea edi, [esp + 0x34]
push dword [ebp + 8]
mov dword [esp + 0x34], eax
call fcn.004b276a
push dword [ebp + 0x10]
push dword [esp + 0x38]
push eax
push dword [esp + 0x28]
mov eax, ebx
call fcn.004a70f2
add esp, 0x20
jmp 0x4b274a
cmp dword [edx + 0x1dc], edi
jne 0x4b1d7b
push str.RAISE___may_only_be_used_within_a_trigger_program
mov edi, edx
call fcn.0049a6c7
pop ecx
jmp 0x4b1cb0
mov al, byte [esi + 1]
push edi
cmp al, 4
je 0x4b1d94
push dword [esi + 4]
movsx eax, al
push edi
push eax
push 0x13
push 0x27
jmp 0x4b2313
push edi
push edi
push 0x69
mov eax, ebx
call fcn.004a70f2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1dc]
push edi
push dword [eax + 0x18]
push edi
push 0x60
jmp 0x4b1d52
mov edi, dword [ebp + 0x10]
push edi
push dword [esi + 8]
push edx
call fcn.004b1c80
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
add esp, 0xc
call fcn.004b58fe
movsx esi, al
add esi, 0x2c
cmp dword [esp + 0x18], edi
je 0x4b1dee
push edi
push dword [esp + 0x1c]
mov eax, ebx
push 9
call fcn.004a7176
add esp, 0xc
mov dword [esp + 0x18], edi
push dword [esp + 0x18]
mov eax, ebx
push esi
call fcn.004a715f
push dword [ebp + 8]
mov ecx, dword [esp + 0x24]
xor eax, eax
inc eax
call fcn.004b1c18
jmp 0x4b2747
push dword [ebp + 0x10]
mov esi, dword [esi + 8]
push esi
push edx
call fcn.004b1c80
mov dword [esp + 0x24], eax
jmp 0x4b2747
mov edi, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov esi, dword [eax + 0xc]
mov ecx, dword [esi]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
push eax
push edx
mov eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
call fcn.004b03a2
mov eax, dword [ebp + 8]
add esp, 0x14
call fcn.004b3207
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
call fcn.004b3207
push 0x10
push dword [esp + 0x10]
mov dword [esp + 0x1c], eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x30]
push 0x4e
push edi
mov edi, dword [ebp + 8]
call fcn.004b03f8
mov edi, dword [esi + 0x14]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x40]
mov eax, esi
mov dword [esp + 0x38], edi
call fcn.004b3222
push edi
push esi
lea edi, [esp + 0x48]
call fcn.004b276a
push 0x10
push dword [esp + 0x38]
mov edi, esi
push eax
push dword [esp + 0x50]
mov eax, dword [esp + 0x50]
push 0x4c
push dword [esp + 0x50]
call fcn.004b03f8
push dword [ebp + 0x10]
mov eax, ebx
push dword [esp + 0x50]
push dword [esp + 0x4c]
push 0x43
call fcn.004a70f2
mov edx, dword [esp + 0x54]
add esp, 0x48
mov eax, esi
call fcn.004b3222
mov edx, dword [esp + 0x14]
call fcn.004b3222
jmp 0x4b274a
cmp eax, 0x59
jg 0x4b21b1
cmp eax, 0x50
jge 0x4b1d26
cmp eax, 0x46
je 0x4b1fc0
jle 0x4b2359
cmp eax, 0x48
jle 0x4b1f6f
cmp eax, 0x4e
jg 0x4b2359
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esi + 8]
mov edi, edx
push edi
call fcn.004b03a2
mov eax, dword [esi + 0xc]
add esp, 0x14
push 0x10
push dword [ebp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x30]
push dword [esp + 0x1c]
push dword [esi + 8]
call fcn.004b03f8
add esp, 0x18
jmp 0x4b274a
push 0
push dword [ebp + 0x10]
mov eax, ebx
push 1
push 0x30
call fcn.004a70f2
push dword [esi + 8]
lea edi, [esp + 0x40]
push dword [ebp + 8]
call fcn.004b276a
push eax
push dword [esp + 0x28]
mov eax, ebx
call fcn.004a715f
push 0
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov esi, eax
push 0x2a
mov eax, ebx
call fcn.004a70f2
mov edx, dword [ebx + 0xc]
add esp, 0x30
mov eax, esi
mov ecx, ebx
call fcn.004a7417
jmp 0x4b274a
lea eax, [esp + 0x14]
push eax
push esi
mov eax, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.004b1349
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x14], edi
je 0x4b1fee
mov eax, dword [ebp + 8]
inc dword [eax + 0x48]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x10], eax
call fcn.004b0325
mov edi, dword [ebp + 8]
inc dword [edi + 0x54]
mov byte [esp + 0x37], al
mov eax, esi
push dword [eax + 8]
mov esi, dword [ebp + 0x10]
call fcn.004b27a5
pop ecx
push esi
push 0x47
mov eax, ebx
call fcn.004a715f
cmp dword [esp + 0x24], 1
pop ecx
pop ecx
mov dword [esp + 0xc], eax
jne 0x4b2090
push esi
push 0x26
mov eax, ebx
call fcn.004a715f
push esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
push dword [eax + 0x18]
mov eax, ebx
push 0x2e
call fcn.004a70f2
push edi
push esi
mov dword [esp + 0x50], eax
push 1
push 0x30
mov eax, ebx
call fcn.004a70f2
push 0x60
push ebx
call fcn.004a7147
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
mov ecx, ebx
call fcn.004a7417
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x60]
mov ecx, ebx
call fcn.004a7417
push edi
push esi
push edi
push 0x30
mov eax, ebx
call fcn.004a70f2
add esp, 0x40
jmp 0x4b2188
mov eax, edi
call fcn.004b3207
push 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3b]
push eax
push dword [esp + 0x30]
push 1
push esi
push 0x4f
push ebx
call fcn.004a718d
add esp, 0x1c
xor esi, esi
push esi
push dword [ebp + 0x10]
mov eax, ebx
push 1
push 0x30
call fcn.004a70f2
push dword [esp + 0x38]
mov eax, dword [ebp + 0xc]
push esi
push dword [eax + 0x18]
mov edi, 0x80
push edi
mov eax, ebx
call fcn.004a70f2
add esp, 0x20
mov dword [esp + 0x1c], eax
mov eax, ebx
cmp dword [esp + 0x10], esi
jne 0x4b2100
push esi
push dword [ebp + 0x10]
push esi
push 0x30
call fcn.004a70f2
add esp, 0x10
jmp 0x4b2188
push dword [esp + 0x14]
push 0x48
call fcn.004a715f
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x30], eax
push esi
push 0x77
mov eax, ebx
call fcn.004a70f2
push 0xfffffffffffffffe
push 0x538020
push esi
push dword [esp + 0x38]
push 2
push 0x79
push ebx
call fcn.004a718d
mov eax, dword [ebp + 0xc]
add esp, 0x34
push dword [esp + 0x14]
push esi
push dword [eax + 0x18]
mov eax, ebx
push edi
call fcn.004a70f2
push esi
push dword [esp + 0x24]
mov edi, eax
push esi
push 0x30
mov eax, ebx
call fcn.004a70f2
mov edx, dword [ebx + 0xc]
mov eax, edi
mov ecx, ebx
call fcn.004a7417
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x40]
mov ecx, ebx
call fcn.004a7417
push dword [ebp + 0x10]
mov eax, ebx
push dword [esp + 0x34]
push 0x14
call fcn.004a7176
add esp, 0x2c
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, ebx
call fcn.004a7417
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
call fcn.004a7417
mov eax, dword [ebp + 8]
call fcn.004b1b05
jmp 0x4b274a
sub eax, 0x5b
je 0x4b21c8
dec eax
jne 0x4b2359
push dword [ebp + 0x10]
push dword [esi + 8]
jmp 0x4b1e15
mov eax, dword [esi + 8]
mov cl, byte [eax]
cmp cl, 0x82
jne 0x4b21e3
push dword [ebp + 0x10]
mov eax, dword [eax + 4]
push 1
mov edi, ebx
call fcn.004b1921
jmp 0x4b21f4
cmp cl, 0x81
jne 0x4b21f8
push dword [ebp + 0x10]
xor ecx, ecx
push ebx
inc ecx
call fcn.004b199d
pop ecx
pop ecx
jmp 0x4b2234
mov eax, edx
call fcn.004b3207
push 0
push eax
mov dword [esp + 0x34], eax
push 0
push 0x30
mov eax, ebx
call fcn.004a70f2
push dword [esi + 8]
lea edi, [esp + 0x3c]
push dword [ebp + 8]
call fcn.004b276a
push dword [ebp + 0x10]
push dword [esp + 0x48]
push eax
push 0x55
mov eax, ebx
call fcn.004a70f2
add esp, 0x28
mov eax, dword [ebp + 0x10]
jmp 0x4b24b6
push dword [esi + 8]
lea edi, [esp + 0x30]
push edx
call fcn.004b276a
mov ecx, dword [ebp + 0x10]
push ecx
push eax
push dword [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x2c], ecx
call fcn.004a7176
add esp, 0x14
jmp 0x4b274a
cmp eax, 0x84
jg 0x4b2329
je 0x4b2321
sub eax, 0x5e
je 0x4b2308
sub eax, 4
je 0x4b22fc
sub eax, 0x12
je 0x4b22e9
sub eax, 0xd
je 0x4b22d5
dec eax
je 0x4b22c4
dec eax
jne 0x4b2359
mov edi, dword [esi + 4]
inc edi
inc edi
mov ecx, edi
call fcn.0049a63b
mov ecx, dword [ebx]
mov esi, eax
dec esi
push esi
call fcn.0049aefe
pop ecx
push 0xffffffffffffffff
push eax
mov eax, esi
cdq
push 0
push dword [ebp + 0x10]
sub eax, edx
sar eax, 1
push eax
push 0x79
jmp 0x4b2313
push dword [ebp + 0x10]
mov eax, dword [esi + 4]
push 0
mov edi, ebx
call fcn.004b1921
jmp 0x4b22e2
push dword [ebp + 0x10]
xor ecx, ecx
push ebx
mov eax, esi
call fcn.004b199d
pop ecx
pop ecx
jmp 0x4b274a
push edi
push edi
push esi
mov ebx, edx
call fcn.004b1607
movsx eax, word [esi + 0x1c]
jmp 0x4b1e1b
push edi
push dword [ebp + 0x10]
push edi
push 0x77
jmp 0x4b24d0
push edi
push dword [esi + 4]
push edi
push dword [ebp + 0x10]
push edi
push 0x5e
push ebx
call fcn.004a718d
add esp, 0x1c
jmp 0x4b274a
mov eax, dword [esi + 0x18]
jmp 0x4b24b6
sub eax, 0x85
je 0x4b26e3
sub eax, 0x11
je 0x4b2540
dec eax
je 0x4b250a
dec eax
je 0x4b24df
dec eax
je 0x4b24a1
dec eax
je 0x4b2540
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ecx
call fcn.004a71bd
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x20], eax
cmp eax, edi
je 0x4b23c0
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.004b276a
mov esi, dword [ebp + 0xc]
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], 0x4a
mov dword [esp + 0x14], eax
xor edi, edi
cmp dword [esp + 0x1c], edi
jle 0x4b245e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
dec eax
shr eax, 1
inc eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
jmp 0x4b23e4
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 8]
inc dword [eax + 0x54]
cmp dword [esp + 0x20], 0
mov eax, dword [ecx]
je 0x4b23f9
mov dword [esp + 0x74], eax
jmp 0x4b23fd
mov dword [esp + 0x14], eax
mov eax, ebx
call fcn.004a71bd
mov edi, dword [ebp + 8]
push 8
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
push edi
call fcn.004b2b93
mov eax, dword [esp + 0x1c]
push dword [eax + 0x14]
mov esi, dword [ebp + 0x10]
call fcn.004b27a5
add esp, 0x14
push 0
push dword [esp + 0x34]
mov eax, ebx
push 0
push 0x60
call fcn.004a70f2
add esp, 0x10
mov eax, edi
call fcn.004b1b05
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.004a720b
add dword [esp + 0xc], 0x28
dec dword [esp + 0x1c]
jne 0x4b23e0
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp dword [esi + 0xc], eax
je 0x4b2480
mov edi, dword [ebp + 8]
inc dword [edi + 0x54]
push dword [esi + 0xc]
mov esi, dword [ebp + 0x10]
call fcn.004b27a5
pop ecx
mov eax, edi
call fcn.004b1b05
jmp 0x4b2491
push eax
push dword [ebp + 0x10]
push eax
push 0x77
mov eax, ebx
call fcn.004a70f2
add esp, 0x10
mov edx, dword [esp + 0x30]
mov ecx, ebx
call fcn.004a720b
jmp 0x4b274a
movsx eax, word [esi + 0x1e]
mov ecx, dword [esi + 0x24]
imul eax, eax, 0x18
add eax, dword [ecx + 0x10]
cmp byte [ecx], 0
jne 0x4b24bf
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
jmp 0x4b274a
cmp byte [ecx + 1], 0
je 0x4b250a
push dword [ebp + 0x10]
push dword [eax + 0xc]
push dword [ecx + 4]
push 3
mov eax, ebx
call fcn.004a70f2
add esp, 0x10
jmp 0x4b274a
mov eax, dword [esi + 0x24]
cmp eax, edi
jne 0x4b24fa
push dword [esi + 4]
mov edi, edx
push str.misuse_of_aggregate:__s__
call fcn.0049a6c7
jmp 0x4b22e2
movsx ecx, word [esi + 0x1e]
mov eax, dword [eax + 0x20]
shl ecx, 4
mov eax, dword [ecx + eax + 8]
jmp 0x4b24b6
mov eax, dword [esi + 0x18]
cmp eax, edi
jge 0x4b251a
movsx eax, word [esi + 0x1c]
add eax, dword [edx + 0x50]
jmp 0x4b24b6
movzx ecx, word [esi + 2]
and ecx, 0x200
push ecx
push dword [ebp + 0x10]
push eax
movsx eax, word [esi + 0x1c]
push eax
push dword [esi + 0x28]
mov eax, edx
call fcn.004b1b2e
add esp, 0x14
jmp 0x4b24b6
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x39]
mov byte [esp + 0xc], al
mov eax, 0x4000
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], edi
test word [esi + 2], ax
je 0x4b25b3
xor edi, edi
and dword [esp + 0x10], 0
mov ecx, dword [esi + 4]
call fcn.0049a63b
push 0
push dword [esp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x18]
push ecx
push dword [esp + 0x2c]
mov ecx, edx
call fcn.004b8358
add esp, 0x10
mov dword [esp + 0x14], eax
test edi, edi
je 0x4b25c2
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.004b3256
push 1
mov dword [esp + 0x28], eax
push eax
mov eax, edi
call fcn.004b28e3
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
jmp 0x4b25c7
mov edi, dword [esi + 0x10]
test edi, edi
je 0x4b2562
mov eax, dword [edi]
mov dword [esp + 0x10], eax
jmp 0x4b2567
and dword [esp + 0x24], 0
mov eax, dword [esp + 0x10]
cmp eax, 2
jl 0x4b25df
test byte [esi + 2], 0x80
je 0x4b25df
mov ecx, dword [edi + 0xc]
push eax
mov eax, dword [ecx + 0x14]
jmp 0x4b25e9
test eax, eax
jle 0x4b25fd
mov ecx, dword [edi + 0xc]
push eax
mov eax, dword [ecx]
push dword [esp + 0x18]
push dword [esp + 0x28]
call fcn.004c5c8b
mov dword [esp + 0x20], eax
add esp, 0xc
and dword [esp + 0xc], 0
cmp dword [esp + 0x10], 0
jle 0x4b2666
xor esi, esi
cmp dword [esp + 0xc], 0x20
jge 0x4b2632
mov eax, dword [edi + 0xc]
push dword [esi + eax]
xor eax, eax
inc eax
call fcn.004b120b
pop ecx
test eax, eax
je 0x4b2632
mov ecx, dword [esp + 0xc]
xor eax, eax
inc eax
shl eax, cl
or dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
test byte [eax + 3], 8
je 0x4b2655
cmp dword [esp + 0x30], 0
jne 0x4b2655
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi]
mov ecx, dword [ebp + 8]
call fcn.004b0252
mov dword [esp + 0x30], eax
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add esi, 0x14
cmp eax, dword [esp + 0x10]
jl 0x4b260b
mov esi, dword [esp + 0x14]
test byte [esi + 3], 8
je 0x4b2692
mov eax, dword [esp + 0x30]
xor ecx, ecx
cmp eax, ecx
jne 0x4b2681
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
push 0xfffffffffffffffc
push eax
push ecx
push ecx
push ecx
push 0xc
push ebx
call fcn.004a718d
add esp, 0x1c
push 0xfffffffffffffffb
push esi
push dword [ebp + 0x10]
push dword [esp + 0x30]
push dword [esp + 0x2c]
push 0x16
push ebx
call fcn.004a718d
mov dl, byte [esp + 0x2c]
add esp, 0x1c
mov ecx, ebx
call fcn.004a7427
cmp dword [esp + 0x10], 0
je 0x4b26ce
push dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
call fcn.004b32a8
pop ecx
push dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
call fcn.004b1c18
add esp, 4
jmp 0x4b274a
mov eax, dword [esi + 4]
cmp byte [eax + 1], 0
jne 0x4b271f
or eax, 0xffffffff
mov ecx, ebx
call fcn.004a7629
cmp byte [eax], 0x1b
jne 0x4b271f
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
add edx, ecx
cmp edx, dword [esi + 0x18]
jne 0x4b271f
mov edx, dword [eax + 8]
add edx, ecx
xor edi, edi
cmp edx, dword [ebp + 0x10]
jne 0x4b271f
cmp dword [eax + 0x10], edi
jne 0x4b271f
inc ecx
mov dword [eax + 0xc], ecx
jmp 0x4b274a
push 1
push dword [ebp + 0x10]
mov eax, ebx
push dword [esi + 0x18]
push 0x1b
call fcn.004a70f2
mov esi, dword [esi + 4]
add esp, 0x10
cmp byte [esi + 1], 0
je 0x4b274a
push edi
push esi
push ebx
or eax, 0xffffffff
call fcn.004a7504
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
call fcn.004b3222
mov edx, dword [esp + 0x28]
call fcn.004b3222
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret