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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x60]
mov eax, dword [esi]
push edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
test ebp, ebp
je 0x4c4dd1
lea ecx, [ecx]
movzx ecx, byte [ebp + 8]
cmp ecx, dword [esp + 0x6c]
jne 0x4c4dc6
movzx edx, byte [ebp + 9]
cmp edx, dword [esp + 0x74]
jne 0x4c4dc6
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x74]
call fcn.0047f2a0
add esp, 4
test eax, eax
je 0x4c4dc6
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x4c4bd0
mov edi, edi
cmp ebp, dword [eax + 0x1c]
je 0x4c4dc6
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4c4bc0
mov ecx, dword [ebp]
mov edi, dword [esp + 0x64]
push ecx
push str.___TRIGGER__s
call fcn.004891e0
mov edi, dword [esi + 0xc]
mov ebx, dword [edi + 0xc]
add esp, 8
cmp dword [edi + 0x10], ebx
mov dword [esp + 0x68], eax
jg 0x4c4c04
call fcn.004843b0
test eax, eax
je 0x4c4c04
mov ebx, 1
jmp 0x4c4c2b
mov eax, dword [edi + 0x14]
inc dword [edi + 0xc]
xor ecx, ecx
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x15
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [edi + 0x6e], cl
mov ecx, dword [edi + 0x14]
mov edx, dword [edi]
mov eax, ebx
test ecx, ecx
je 0x4c4c76
cmp byte [edx + 0x1e], 0
jne 0x4c4c76
test ebx, ebx
jge 0x4c4c44
mov eax, dword [edi + 0xc]
dec eax
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
mov edi, edx
call fcn.00484870
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov dword [ebx + 0x10], ecx
cmp eax, ecx
jne 0x4c4c6d
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], cl
jmp 0x4c4c84
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xff
jmp 0x4c4c84
mov ecx, dword [esp + 0x68]
or eax, 0xffffffff
mov edi, edx
call fcn.00484870
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x1e8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x18]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x1ec]
mov dword [esi + 0x1e8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edx
mov edx, dword [ebp]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], ecx
mov dword [esi + 0x1ec], edx
call fcn.00484590
push 0
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [esp + 0x70]
push eax
call fcn.00491fd0
mov edi, dword [esp + 0x74]
add esp, 0x10
cmp byte [edi + 0x1e], 0
mov ebx, eax
jne 0x4c4e01
lea edi, [esp + 0x3c]
call fcn.0049c130
test eax, eax
jne 0x4c4dfd
mov ecx, dword [esp + 0x68]
push 8
push ecx
push ebx
push esi
call fcn.0049cc00
add esp, 0x10
test ebx, ebx
je 0x4c4d81
mov edi, dword [esp + 0x64]
push ebx
push edi
call fcn.004853d0
mov dx, word [ebx + 2]
mov eax, 0x8000
and dx, ax
mov ecx, eax
add esp, 8
cmp dx, cx
je 0x4c4d81
push ebx
push edi
call fcn.00477390
add esp, 8
mov edx, dword [esp + 0x84]
mov eax, dword [ebp + 0x1c]
push edx
push eax
push esi
call fcn.004c47b0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x1e8], ecx
mov dword [esi + 0x1ec], edx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x20]
add esp, 0xc
test eax, eax
je 0x4c4dc6
mov edx, dword [esp + 0x68]
mov ecx, dword [ecx + 0xc]
lea edx, [edx*4 + 4]
sub eax, edx
mov dword [eax], ecx
mov ebp, dword [ebp + 0x20]
test ebp, ebp
jne 0x4c4b80
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4c4de2
mov ecx, dword [esp + 0x28]
or dword [eax], ecx
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4c4df3
mov edx, dword [esp + 0x24]
or dword [eax], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x1e8], edx
test ebx, ebx
je 0x4c4e66
push ebx
push edi
call fcn.004853d0
mov ax, word [ebx + 2]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
add esp, 8
cmp ax, dx
je 0x4c4e66
cmp ebx, dword [edi + 0xe8]
jb 0x4c4e5d
cmp ebx, dword [edi + 0xec]
jae 0x4c4e5d
mov eax, dword [edi + 0xe4]
mov dword [ebx], eax
dec dword [edi + 0xdc]
mov dword [edi + 0xe4], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
push ebx
call fcn.00477310
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret