Function at 0x4a0e80
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, dword [esi*4 + 0x20a514c]
test esi, esi
js 0x4a1058
cmp esi, 0x1194
jge 0x4a1058
cmp dword [ebx + 4], 3
jne 0x4a1058
movzx eax, word [ebx + 0x78]
cmp eax, 1
je 0x4a0ec6
cmp eax, 6
jne 0x4a1058
cmp byte [ebx + 0xa], 0
jg 0x4a1058
cmp byte [ebx + 0x9c0], 0
jne 0x4a1058
cmp byte [ebx + 0x216], 0
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], 0x2305c1
mov al, byte [edi + 5]
mov byte [esp + 0x30], al
jne 0x4a104b
mov eax, dword [ebx + 0x384]
test al, 3
je 0x4a0f16
and eax, 0xffc0
cmp eax, 0xc0
jne 0x4a104b
push esi
call fcn.004748f0
test eax, eax
jne 0x4a104b
mov ecx, esi
call fcn.0051fd50
cmp byte [ebx + 0x38c], 1
je 0x4a104b
mov al, byte [edi + 5]
cmp al, 0xcc
jae 0x4a104b
movzx eax, al
imul eax, eax, 0x10c
add eax, dword [ebx + 0x390]
mov dword [esp + 0x10], eax
movzx eax, word [eax + 4]
mov dword [esp + 0x18], eax
movzx ecx, ax
test ax, ax
js 0x4a104b
mov edx, 0x2000
cmp cx, dx
jge 0x4a104b
cwde
mov ecx, 0x9f4360
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405650
mov eax, dword [esp + 0x28]
mov ecx, dword [0x9f4360]
mov edx, dword [esp + 0xc]
cmp byte [eax + 0xd], 0
jne 0x4a0faa
cmp edx, dword [eax + 0x10]
jge 0x4a0fac
mov eax, ecx
cmp eax, ecx
jne 0x4a104b
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xba], 0
jne 0x4a104b
cmp dword [ebx + 0xdac], 0
jle 0x4a1061
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x30a
push eax
lea eax, [esp + 0x24]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x28]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4a1007
cmp dword [eax + 0x10], 0x30a
jle 0x4a1009
mov eax, ecx
cmp eax, ecx
jne 0x4a102c
push 0x30a
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x4a102f
add eax, 0x18
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push dword [ebx]
push 0xb90558
call fcn.004cdc70
add esp, 0x24
push 5
lea eax, [esp + 0x30]
push eax
push esi
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edx
push eax
lea eax, [esp + 0x24]
mov ecx, 0x9ed0d0
push eax
call fcn.00405650
mov eax, dword [esp + 0x28]
mov ecx, dword [0x9ed0d0]
cmp byte [eax + 0xd], 0
jne 0x4a1092
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x10]
jge 0x4a1094
mov eax, ecx
cmp eax, ecx
je 0x4a109e
cmp dword [eax + 0x18], 0
je 0x4a104b
mov eax, dword [esp + 0x18]
mov ecx, 0x1800
mov edx, dword [esp + 0x10]
cmp ax, cx
jge 0x4a10b7
cmp word [edx + 6], 4
jg 0x4a104b
mov ecx, 0x1a03
cmp ax, cx
je 0x4a10d8
mov ecx, 0x1a25
cmp ax, cx
je 0x4a10d8
cmp byte [edx + 0x9f], 0
jne 0x4a104b
test byte [edx + 0xb6], 3
jne 0x4a104b
xor eax, eax
nop word [eax + eax]
cmp byte [eax + edx + 0xd3], 0xff
jne 0x4a110d
inc eax
cmp eax, 5
jl 0x4a10f0
test byte [edx + 0xcc], 0xf0
jne 0x4a104b
movzx eax, byte [edi + 4]
mov ecx, dword [0x9ed088]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 3]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0x149]
mov dword [esp + 0x20], eax
movsx eax, word [edx + 6]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
cmp eax, ecx
je 0x4a11c7
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x4a115c
cmp ecx, dword [esp + 0xc]
jne 0x4a115c
mov ecx, dword [eax + 0x1c]
cmp ecx, 0xffffffff
je 0x4a11a6
cmp ecx, dword [esp + 0x18]
je 0x4a11a6
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x4a1184
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x4a1180
nop
cmp eax, dword [ecx + 8]
jne 0x4a1180
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x4a1170
mov eax, ecx
jmp 0x4a119c
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x4a119c
nop
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x4a1190
cmp eax, dword [0x9ed088]
jne 0x4a1140
jmp 0x4a11c3
push dword [esp + 0x14]
lea ecx, [eax + 0x2c]
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebx
call fcn.00497970
test al, al
jne 0x4a14d1
mov edx, dword [esp + 0x10]
movzx ecx, word [edx + 4]
mov eax, 0x1a07
cmp cx, ax
jne 0x4a120c
movzx eax, word [edx + 6]
mov dword [esp + 0x20], eax
test ax, ax
je 0x4a11ec
cmp ax, 1
jne 0x4a140f
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
mov eax, dword [esp + 0x28]
cwde
add eax, 0x11e
push eax
push esi
call fcn.004b9980
jmp 0x4a14c9
mov eax, 0x1a0b
cmp cx, ax
jne 0x4a122c
cmp word [edx + 6], 1
jne 0x4a140f
push esi
call fcn.004b1c60
jmp 0x4a14c9
mov eax, 0x1a14
cmp cx, ax
jne 0x4a1393
movzx eax, word [edx + 6]
mov esi, eax
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 0xc]
cmp ax, 1
jne 0x4a130a
cmp word [ebx + 0xd0], 0x28
jge 0x4a12e0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x101
push eax
lea eax, [esp + 0x38]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x3c]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4a1294
cmp dword [eax + 0x10], 0x101
jle 0x4a1296
mov eax, ecx
cmp eax, ecx
jne 0x4a12ca
push 0x101
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 0xa9b7bc
push eax
push 0
push 0
push 0
push 0
push 0
push 1
push esi
jmp 0x4a103e
add eax, 0x18
push eax
push 0
push 0
push 0
push 0
push 0
push 1
push esi
jmp 0x4a103e
movzx eax, byte [edi + 5]
push eax
push esi
call fcn.0049de90
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
movzx eax, byte [ebx + 0x149]
push eax
push ebx
push 0xf
call fcn.0049a3c0
jmp 0x4a14dc
cmp word [esp + 0x20], 2
jne 0x4a140f
cmp word [ebx + 0xd0], 0x50
jge 0x4a1369
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x102
push eax
lea eax, [esp + 0x38]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x3c]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4a1355
cmp dword [eax + 0x10], 0x102
jle 0x4a1357
mov eax, ecx
cmp eax, ecx
jne 0x4a12ca
push 0x102
jmp 0x4a129f
movzx eax, byte [edi + 5]
push eax
push esi
call fcn.0049de90
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
movzx eax, byte [ebx + 0x149]
push eax
push ebx
push 0x10
call fcn.0049a3c0
jmp 0x4a14dc
mov eax, 0x1c1c
cmp cx, ax
jne 0x4a13b7
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
movsx eax, word [edx + 6]
push eax
push esi
call fcn.004acb30
jmp 0x4a14c9
mov eax, 0x1c3f
cmp cx, ax
jne 0x4a1405
mov al, byte [edi + 3]
lea edx, [esp + 0x20]
mov ecx, dword [ebx]
mov byte [esp + 0x25], al
mov al, byte [edi + 4]
push 7
mov dword [esp + 0x24], 0x40f307c1
mov byte [esp + 0x28], 0
mov byte [esp + 0x2a], al
call fcn.00526480
movzx eax, byte [esp + 0x25]
lea edx, [esp + 0x24]
add esp, 4
mov ecx, ebx
push eax
call fcn.005264a0
add esp, 4
jmp 0x4a14d1
mov eax, 0x1c63
cmp cx, ax
je 0x4a13c1
movsx eax, cx
mov ecx, dword [0xbf53d4]
mov dword [esp + 0x20], eax
mov eax, dword [0xbf53d0]
cmp eax, ecx
je 0x4a143c
mov esi, dword [esp + 0x20]
cmp dword [eax + 4], esi
mov esi, dword [ebp + 0xc]
je 0x4a1502
add eax, 8
cmp eax, ecx
jne 0x4a1425
push dword [edx + 0xbc]
movzx eax, byte [ebx + 0x149]
imul ecx, eax, 0x15d38
movzx eax, byte [edx + 0xd8]
push eax
lea eax, [edx + 0xd3]
movss xmm3, dword [edx + 0x20]
push eax
movzx eax, byte [edx + 0xd2]
add ecx, 0xd2f370
push eax
movzx eax, byte [edx + 0xcc]
push eax
push dword [edx + 0xc8]
movzx eax, byte [edx + 0xb6]
push dword [edx + 0xc4]
push esi
push dword [edx]
push eax
movzx eax, byte [edx + 0x9f]
push eax
movzx eax, byte [edx + 0x9e]
push eax
movzx eax, byte [edx + 0x9d]
push eax
movzx eax, byte [edx + 0x9c]
push eax
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
movsx eax, word [edx + 6]
push eax
movsx eax, word [edx + 4]
push eax
call fcn.004b35c0
test al, al
je 0x4a104b
movzx eax, byte [edi + 5]
push eax
push esi
call fcn.0049de90
push 5
lea eax, [esp + 0x30]
mov byte [esp + 0x33], 1
push eax
push esi
call fcn.005192f0
movzx eax, byte [edi + 5]
push eax
push esi
call fcn.0049f3c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
movzx eax, byte [ebx + 0x149]
push eax
movsx eax, word [edx + 4]
push eax
push esi
call fcn.0051a400
jmp 0x4a14c9