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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
and dword [esp + 0x20], 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 + 0x14], 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 + 0x24], edx
test esi, esi
jne 0x49171a
xor eax, eax
jmp 0x4921d5
test ebx, ebx
jne 0x491723
push 0x62
pop eax
jmp 0x491726
movzx eax, byte [ebx]
mov dword [esp + 0x20], eax
cmp eax, 0x62
jg 0x491c22
je 0x491c16
cmp eax, 0x46
jg 0x49197a
je case.0x491c35.146
cmp eax, 0x25
jg 0x4917e6
je 0x491781
sub eax, 0x13
je 0x491bb8
dec eax
je case.0x491c35.116
sub eax, 4
jne case.0x491c35.117
mov edx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.004916d6
pop ecx
mov dword [esp + 0x10], eax
jmp 0x4921b9
mov edx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.004916d6
pop ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
call fcn.0049596a
movsx ebx, al
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 8]
je 0x4917bf
push 0
push dword [ebp + 8]
mov ecx, esi
push eax
push 0xf
pop edx
call fcn.00485377
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.00485377
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov edx, ebx
mov ecx, edi
push 1
call fcn.0049152e
pop ecx
jmp 0x4921bd
cmp eax, 0x38
je 0x491902
cmp eax, 0x3c
je 0x4918a7
cmp eax, 0x43
jle case.0x491c35.117
cmp eax, 0x45
jle 0x491be2
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.0048542c
mov edx, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
test edx, edx
je 0x491876
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 + 0x2c]
push eax
mov ecx, edi
call fcn.00492240
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
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 0x49217b
mov ebx, dword [esp + 0x40]
dec eax
shr eax, 1
inc eax
mov dword [esp + 0x28], eax
inc dword [edi + 0x54]
mov eax, dword [ebx]
test edx, edx
je 0x492110
mov dword [esp + 0x84], eax
jmp 0x492114
mov edi, dword [ebx + 0x28]
movsx eax, word [ebx + 0x1c]
push 0
push ecx
mov ecx, dword [edi + 0xc]
inc eax
inc ecx
imul ecx, dword [ebx + 0x18]
add eax, ecx
mov ecx, esi
push eax
push 0x6c
pop edx
call fcn.00485377
movzx eax, word [ebx + 0x1c]
add esp, 0xc
test ax, ax
js 0x4921b9
cwde
imul ecx, eax, 0x18
mov eax, dword [edi + 0x10]
cmp byte [ecx + eax + 0x16], 0x65
jne 0x4921b9
push 0
push 0
push dword [ebp + 8]
push 0x16
pop edx
mov ecx, esi
call fcn.00485377
add esp, 0xc
jmp 0x4921b9
cmp dword [edi + 0x1ac], 0
jne 0x49191d
push str.RAISE___may_only_be_used_within_a_trigger_program
push edi
call fcn.00477f47
pop ecx
pop ecx
jmp 0x491713
cmp byte [ebx + 1], 2
jne 0x491937
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 0x49196b
mov ecx, dword [esp + 0x1c]
mov esi, dword [ebx + 4]
push 4
push 0
push 6
pop edx
call fcn.00485377
add esp, 0xc
push 0
mov ecx, dword [esp + 0x1c]
mov edx, eax
push esi
call fcn.004857a7
pop ecx
pop ecx
jmp 0x4921b9
push dword [ebx + 4]
movsx edx, al
mov ecx, edi
call fcn.00497e9f
jmp 0x491964
cmp eax, 0x50
jg 0x491b80
cmp eax, 0x4b
jge 0x491b3e
cmp eax, 0x47
je 0x491a78
cmp eax, 0x48
je 0x491a05
add eax, 0xffffffb7
cmp eax, 1
ja case.0x491c35.117
push 0
push ecx
push 1
push 7
pop edx
mov ecx, esi
call fcn.00485377
mov edx, dword [ebx + 8]
lea eax, [esp + 0x38]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00492240
mov edx, dword [esp + 0x24]
xor ebx, ebx
pop ecx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.00485377
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.00485377
add esp, 0xc
mov edx, esi
mov ecx, ebx
push dword [ebx + 0xc]
call fcn.004855fd
jmp 0x491965
mov ecx, esi
call fcn.0048542c
mov ecx, dword [esp + 0x18]
mov esi, eax
call fcn.0048542c
mov ecx, dword [esp + 0x18]
mov edi, eax
push 0
push dword [ebp + 8]
push 0
push 0xa
pop edx
call fcn.00485377
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, ebx
push edi
push esi
call fcn.0049117d
mov ebx, dword [esp + 0x20]
mov ecx, ebx
push 0
push dword [ebp + 8]
push 1
push 7
pop edx
call fcn.00485377
add esp, 0x14
mov edx, esi
mov ecx, ebx
call fcn.0048547c
push 0
push 0
push dword [ebp + 8]
push 0x14
pop edx
call fcn.00485377
add esp, 0xc
mov edx, edi
mov ecx, ebx
jmp 0x4921b4
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 + 0x2c]
push eax
mov esi, dword [edi]
call fcn.00492240
mov ebx, eax
mov edx, esi
pop ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
call fcn.00492240
pop ecx
mov ecx, dword [esp + 0x34]
mov edx, eax
call fcn.00492d45
mov dword [esp + 0x28], eax
call fcn.00492d45
push 0x10
push dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
push edx
mov edx, dword [esp + 0x28]
push ebx
push 0x50
push esi
call fcn.0048fb95
mov esi, dword [edi + 0x14]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
call fcn.00492d61
lea eax, [esp + 0x50]
mov edx, esi
push eax
call fcn.00492240
mov edi, dword [esp + 0x40]
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.0048fb95
push dword [ebp + 8]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
push edi
push ebx
push 0x45
pop edx
call fcn.00485377
add esp, 0x24
mov edx, ebx
mov ecx, esi
call fcn.00492d61
mov edx, edi
call fcn.00492d61
jmp 0x4921b9
mov edx, dword [ebx + 8]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00492240
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00492240
pop ecx
push 0x10
push dword [ebp + 8]
push eax
push esi
push dword [esp + 0x30]
push dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov ecx, edi
call fcn.0048fb95
add esp, 0x18
jmp 0x4921b9
cmp eax, 0x52
jl case.0x491c35.117
cmp eax, 0x5b
jle 0x491be2
cmp eax, 0x5d
je 0x491bb8
push 0x5e
pop edx
cmp eax, edx
jne case.0x491c35.117
mov esi, dword [ebx + 4]
xor edi, edi
push edi
push ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.00485377
add esp, 0xc
push edi
jmp 0x491958
mov edx, dword [ebx + 8]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00492240
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x24]
pop ecx
push 0
push ebx
push eax
mov ecx, esi
call fcn.00485377
add esp, 0xc
jmp 0x4921bd
mov edx, dword [ebx + 8]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00492240
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00492240
mov edx, dword [esp + 0x24]
pop ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push esi
push eax
jmp 0x4918f5
push 0
push ecx
push 0
push 0xa
jmp 0x4918f2
add eax, 0xffffff8c
cmp eax, 0x29
ja case.0x491c35.117
movzx eax, byte [eax + 0x492216]
jmp dword [eax*4 + 0x4921de]
movsx eax, word [ebx + 0x1e]
mov edx, dword [ebx + 0x24]
imul eax, eax, 0x18
add eax, dword [edx + 0x10]
cmp byte [edx], 0
jne 0x491c58
mov eax, dword [eax + 0x10]
mov ebx, eax
jmp 0x4921bd
cmp byte [edx + 1], 0
je case.0x491c35.152
push ecx
push dword [eax + 0xc]
push dword [edx + 4]
push 0x1c
jmp 0x4918f2
cmp dword [ebx + 0x18], 0
movsx eax, word [ebx + 0x1c]
jge 0x491c7b
add eax, dword [edi + 0x50]
jmp 0x491c51
mov edx, dword [ebx + 0x28]
push ecx
push dword [ebx + 0x18]
mov ecx, edi
push eax
call fcn.00491599
add esp, 0xc
jmp 0x491778
push ecx
push 0
mov edx, ebx
mov ecx, esi
call fcn.004913b6
jmp 0x491964
mov edx, dword [ebx + 4]
push ecx
push 0
mov ecx, esi
call fcn.00491340
jmp 0x491964
mov ecx, dword [ebx + 4]
add ecx, 2
call fcn.00477ebb
mov ebx, dword [esp + 0x18]
mov edx, ecx
lea esi, [eax - 1]
mov ecx, dword [ebx]
push esi
call fcn.0047898b
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.004853c9
add esp, 0x14
jmp 0x4921b9
mov eax, dword [ebx + 4]
cmp byte [eax + 1], 0
jne 0x491d41
or edx, 0xffffffff
mov ecx, esi
call fcn.004858d6
mov edi, eax
cmp byte [edi], 0xc
jne 0x491d3e
mov edx, dword [edi + 4]
movsx ecx, word [ebx + 0x1c]
add edx, dword [edi + 0xc]
cmp edx, ecx
mov ecx, dword [ebp + 8]
jne 0x491d41
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
add eax, edx
cmp eax, ecx
jne 0x491d41
cmp dword [edi + 0x10], 0
jne 0x491d41
lea eax, [edx + 1]
mov ebx, ecx
mov dword [edi + 0xc], eax
jmp 0x4921bd
mov ecx, dword [ebp + 8]
movsx eax, word [ebx + 0x1c]
push 1
push ecx
push eax
push 0xc
pop edx
mov ecx, esi
call fcn.00485377
mov eax, dword [ebx + 4]
add esp, 0xc
cmp byte [eax + 1], 0
je 0x4921b9
push 0
push eax
or edx, 0xffffffff
mov ecx, esi
jmp 0x49195f
mov eax, dword [ebx + 0x18]
jmp 0x491c51
mov edx, dword [ebx + 8]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00492240
mov edx, dword [ebx + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00492240
pop ecx
push 0x90
push dword [ebp + 8]
push eax
xor eax, eax
cmp dword [esp + 0x2c], 0x46
push esi
sete al
add eax, 0x4b
push eax
jmp 0x491b6b
mov edx, dword [ebx + 8]
mov al, byte [edx]
cmp al, 0x82
jne 0x491dcf
mov edx, dword [edx + 4]
push ecx
push 1
mov ecx, esi
call fcn.00491340
jmp 0x491ddd
cmp al, 0x81
jne 0x491de1
push ecx
push 1
mov ecx, esi
call fcn.004913b6
pop ecx
pop ecx
jmp 0x491e26
mov ecx, edi
call fcn.00492d45
mov ecx, dword [esp + 0x18]
mov esi, eax
push 0
push esi
push 0
push 7
pop edx
mov dword [esp + 0x38], esi
call fcn.00485377
mov edx, dword [ebx + 8]
lea eax, [esp + 0x44]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00492240
pop ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push esi
push eax
push 0x57
pop edx
call fcn.00485377
add esp, 0xc
mov ebx, dword [ebp + 8]
jmp 0x4921bd
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x491e48
push dword [ebx + 4]
push str.misuse_of_aggregate:__s__
push edi
call fcn.00477f47
jmp 0x4918fa
movsx ecx, word [ebx + 0x1e]
mov eax, dword [eax + 0x20]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 8]
jmp 0x491c51
mov eax, dword [edx + 8]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x49]
mov byte [esp + 0x1c], al
mov eax, 0x2000
test word [ebx + 2], ax
je 0x491ed1
mov dword [esp + 0x20], ecx
mov edx, ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ecx
call fcn.00477ebb
push 0
push dword [esp + 0x20]
mov dword [esp + 0x4c], eax
push edx
mov edx, ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.0049849b
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x491ee0
push dword [esp + 0x30]
push dword [esp + 0x48]
push str.unknown_function:__.s__
push edi
call fcn.00477f47
add esp, 0x10
jmp 0x4921b9
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], eax
test eax, eax
je 0x491e80
mov edx, dword [eax]
jmp 0x491e82
test byte [ecx + 3], 0x40
je 0x491f7c
mov ecx, esi
call fcn.0048542c
mov edx, dword [esp + 0x20]
mov ecx, edi
mov ebx, dword [ebp + 8]
push ebx
mov dword [esp + 0x2c], eax
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
call fcn.00492279
mov eax, dword [esp + 0x18]
pop ecx
cmp eax, 1
jle 0x491f6c
dec eax
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x1c], eax
push 0
push dword [esp + 0x2c]
mov ecx, esi
push ebx
push 0x4a
pop edx
call fcn.00485377
add esp, 0xc
mov edx, ebx
mov ecx, edi
push 1
call fcn.0049152e
mov eax, dword [esp + 0x24]
inc dword [edi + 0x54]
pop ecx
push ebx
mov edx, dword [eax + 0xc]
mov ecx, edi
mov eax, dword [esp + 0x28]
mov edx, dword [eax + edx]
call fcn.00492279
pop ecx
mov ecx, edi
call fcn.0049156a
add dword [esp + 0x24], 0x14
dec dword [esp + 0x1c]
jne 0x491f20
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.0048547c
jmp 0x4921bd
mov eax, dword [esp + 0x20]
test eax, eax
je 0x491fb7
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00492d95
mov edx, dword [esp + 0x20]
mov ecx, edi
inc dword [edi + 0x54]
push 1
push eax
mov dword [esp + 0x24], eax
call fcn.0049238b
pop ecx
pop ecx
mov ecx, edi
call fcn.0049156a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
jmp 0x491fbc
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 2
jl 0x491fe7
test byte [ebx + 2], 0x80
je 0x491fe7
mov eax, dword [eax + 0xc]
mov ebx, dword [esp + 0x14]
push dword [eax + 0x14]
mov edx, ecx
mov ecx, dword [esp + 0x28]
push ebx
call fcn.004a7f7c
pop ecx
pop ecx
mov dword [esp + 0x3c], eax
jmp 0x491ffa
mov ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x491ff6
mov eax, dword [eax + 0xc]
push dword [eax]
jmp 0x491fd3
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x30], ecx
test ebx, ebx
jle 0x492080
mov esi, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, 0x20
jge 0x49203e
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, dword [esp + 0x14]
inc edx
mov ecx, dword [ecx + eax]
call fcn.00490996
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x49203a
xor eax, eax
inc eax
shl eax, cl
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
test byte [eax + 3], 8
je 0x49206c
cmp dword [esp + 0x40], 0
jne 0x49206c
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + ecx]
mov ecx, edi
call fcn.0048fa2c
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 0x49200e
mov esi, dword [esp + 0x18]
test byte [eax + 3], 8
je 0x4920c0
cmp dword [esp + 0x40], 0
jne 0x492098
mov eax, dword [esp + 0x24]
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.00485377
add esp, 0xc
mov edx, eax
mov ecx, esi
push 0xfffffffffffffffc
push dword [esp + 0x44]
call fcn.004857a7
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 + 0x38]
push 0x12
pop edx
call fcn.004853c9
add esp, 0x14
mov dl, bl
mov ecx, esi
call fcn.00485614
test ebx, ebx
je 0x4921b9
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebx
call fcn.00492dc0
jmp 0x491965
push 0
push 0
mov edx, ebx
mov ecx, edi
call fcn.00490e01
pop ecx
jmp 0x491777
mov dword [esp + 0x1c], eax
mov ecx, esi
call fcn.0048542c
mov edx, dword [esp + 0x1c]
mov esi, eax
push 8
push esi
mov ecx, edi
call fcn.00492719
push dword [ebp + 8]
mov edx, dword [ebx + 0x14]
mov ecx, edi
call fcn.00492279
mov ecx, dword [esp + 0x24]
add esp, 0xc
xor edx, edx
inc edx
push 0
push dword [esp + 0x34]
push 0
call fcn.00485377
add esp, 0xc
mov ecx, edi
call fcn.0049156a
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0048547c
mov edx, dword [esp + 0x24]
add ebx, 0x28
dec dword [esp + 0x28]
jne 0x49188e
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x49219c
inc dword [edi + 0x54]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [ebx + 0xc]
call fcn.00492279
pop ecx
mov ecx, edi
call fcn.0049156a
jmp 0x4921ae
push eax
push dword [ebp + 8]
mov ecx, esi
push eax
push 0xa
pop edx
call fcn.00485377
add esp, 0xc
mov edx, dword [esp + 0x30]
mov ecx, esi
call fcn.0048547c
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
call fcn.00492d61
mov edx, dword [esp + 0x38]
call fcn.00492d61
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret