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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebx + 0x74]
push dword [ebx + 0x80]
call fcn.004a6c0b
add esp, 0x10
mov si, word [ebp - 0x20c]
mov ax, word [ebp - 0x20a]
mov word [ebp - 2], ax
mov di, word [ebp - 0x208]
mov ax, word [ebp - 0x206]
mov word [ebp - 4], ax
mov edx, dword [ebp - 0x404]
mov dword [ebx + 0x78], edx
cmp dword [ebx + 0x78], 0
je 0x4a9ed5
test dword [ebx + 0x78], 0x1ff
jne 0x4a9ed5
mov ecx, dword [ebx + 0x80]
push dword [ecx + 8]
call fcn.00437ea7
pop ecx
push edx
push eax
mov eax, dword [ebx + 0x78]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4a9e49
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4a9ed5
jmp 0x4a9e51
pop edx
pop eax
jge 0x4a9ed5
cmp word [ebp - 0x3f8], 0xf0
ja 0x4a9ed5
movzx ecx, si
movzx eax, word [ebp - 2]
add ecx, eax
cmp ecx, 0x200
jg 0x4a9ed5
movzx edx, di
movzx ecx, word [ebp - 4]
add edx, ecx
cmp edx, 0x200
jg 0x4a9ed5
cmp si, di
jbe 0x4a9eab
movzx eax, di
movzx edx, word [ebp - 4]
add eax, edx
movzx ecx, si
cmp eax, ecx
jle 0x4a9ea0
movzx eax, si
cmp byte [ebp + eax - 0x204], 0
jne 0x4a9ea4
xor edx, edx
jmp 0x4a9ed1
mov edx, 1
jmp 0x4a9ed1
movzx ecx, si
movzx eax, word [ebp - 2]
add ecx, eax
movzx edx, di
cmp ecx, edx
jle 0x4a9ec8
movzx ecx, si
cmp byte [ebp + ecx - 0x204], 0
jne 0x4a9ecc
xor edx, edx
jmp 0x4a9ed1
mov edx, 1
test edx, edx
je 0x4a9edf
xor eax, eax
mov dword [ebx + 0x78], eax
jmp 0x4aa1b4
cmp word [ebp - 4], 0
jne 0x4a9efa
cmp di, si
ja 0x4a9eef
mov ecx, esi
jmp 0x4a9ef3
mov cx, pe_nt_image_headers32
sub cx, di
mov word [ebp - 4], cx
cmp word [ebp - 2], 0
jne 0x4a9f11
cmp di, si
jae 0x4a9f0a
mov di, pe_nt_image_headers32
sub di, si
mov word [ebp - 2], di
movzx eax, word [ebp - 4]
inc eax
push eax
call sym.SISCOM.EXE__hb_xgrab
pop ecx
mov dword [ebx + 4], eax
movzx edx, word [ebp - 4]
push edx
lea ecx, [ebp - 0x204]
push ecx
push dword [ebx + 4]
call fcn.004bb596
add esp, 0xc
mov ax, word [ebp - 0x3f8]
mov word [ebx + 0x16], ax
movzx edx, word [ebx + 0x16]
add edx, 8
mov eax, 0x1f4
mov ecx, edx
cdq
idiv ecx
mov word [ebx + 0x7c], ax
mov al, byte [ebp - 0x3f6]
mov byte [ebx + 0x1b], al
test byte [ebx + 0x1b], 1
setne dl
and edx, 1
mov dword [ebx + 0x20], edx
test byte [ebx + 0x1b], 2
setne cl
and ecx, 1
mov dword [ebx + 0x24], ecx
test byte [ebx + 0x1b], 4
setne al
and eax, 1
mov dword [ebx + 0x28], eax
xor edx, edx
mov dword [ebx + 0x38], edx
cmp dword [ebx + 0x24], 0
jne 0x4a9f9c
cmp dword [ebx + 0x28], 0
jne 0x4a9f9c
xor ecx, ecx
jmp 0x4a9fa1
mov ecx, 1
mov dword [ebx + 0x34], ecx
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x2c], eax
cmp word [ebp - 0x20e], 0
sete dl
and edx, 1
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x1c], edx
xor eax, eax
mov dword [ebx + 0x40], eax
cmp byte [ebp - 0x3f5], 1
jne 0x4a9fe1
cmp byte [ebp - 0x211], 1
sete cl
and ecx, 1
mov dword [ebx + 0x44], ecx
jmp 0x4a9fe6
xor eax, eax
mov dword [ebx + 0x44], eax
test byte [ebx + 0x1b], 0x80
jne 0x4aa1b4
mov edx, dword [ebx + 4]
cmp byte [edx], 0
je 0x4aa016
push dword [ebx + 4]
mov ecx, dword [ebx + 0x80]
mov eax, dword [ecx + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x140]
add esp, 8
cmp ax, 1
jne 0x4aa020
xor ecx, ecx
mov dword [ebx + 0x78], ecx
jmp 0x4aa1b4
mov eax, dword [ebx + 0x80]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 0x1c]
mov dword [ebx + 0xc], ecx
mov eax, dword [ebx + 0x80]
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov dword [edx + 0x1c], ecx
mov eax, dword [ebx + 0x80]
mov edx, dword [eax + 0xc]
mov edi, dword [edx + 0xec]
push 0
mov eax, dword [ebx + 0x80]
mov edx, dword [eax + 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x10]
add esp, 8
push dword [ebx + 0xc]
call fcn.00479add
pop ecx
push eax
call fcn.004a5a44
pop ecx
and eax, 0xff
mov word [ebx + 0x14], ax
cmp word [ebx + 0x14], 0x43
jne 0x4aa084
mov dl, 0x20
jmp 0x4aa086
xor edx, edx
mov byte [ebx + 0x1a], dl
cmp word [ebx + 0x14], 0x43
jne 0x4aa0a1
mov eax, dword [ebx + 0x80]
push dword [eax + 0xc]
call fcn.004a5507
pop ecx
jmp 0x4aa0a6
xor ecx, ecx
mov dword [ebx + 0x44], ecx
push dword [ebx + 4]
mov eax, dword [ebx + 0x80]
push dword [eax + 0xc]
call fcn.0049b86b
add esp, 8
mov word [ebx + 0x18], ax
movzx edx, si
cmp byte [ebp + edx - 0x204], 0
je 0x4aa155
movzx ecx, word [ebp - 2]
inc ecx
push ecx
call sym.SISCOM.EXE__hb_xgrab
pop ecx
mov dword [ebx + 8], eax
movzx eax, word [ebp - 2]
push eax
movzx edx, si
lea ecx, [ebp - 0x204]
add edx, ecx
push edx
push dword [ebx + 8]
call fcn.004bb596
add esp, 0xc
push dword [ebx + 8]
mov eax, dword [ebx + 0x80]
mov edx, dword [eax + 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x140]
add esp, 8
cmp ax, 1
jne 0x4aa11f
xor eax, eax
mov dword [ebx + 0x78], eax
jmp 0x4aa155
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + 0x1c]
mov dword [ebx + 0x10], eax
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + 0xc]
xor eax, eax
mov dword [ecx + 0x1c], eax
push dword [ebx + 0x10]
call fcn.00479add
pop ecx
push eax
call fcn.004a5a44
pop ecx
cmp al, 0x4c
je 0x4aa155
xor edx, edx
mov dword [ebx + 0x78], edx
push edi
mov ecx, dword [ebx + 0x80]
mov eax, dword [ecx + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
add esp, 8
cmp word [ebx + 0x16], 0xf0
ja 0x4aa1af
cmp word [ebx + 0x14], 0x55
je 0x4aa1af
cmp word [ebx + 0x14], 0x4e
jne 0x4aa185
cmp word [ebx + 0x16], 8
jne 0x4aa1af
cmp word [ebx + 0x14], 0x44
jne 0x4aa193
cmp word [ebx + 0x16], 8
jne 0x4aa1af
cmp word [ebx + 0x14], 0x54
jne 0x4aa1a1
cmp word [ebx + 0x16], 8
jne 0x4aa1af
cmp word [ebx + 0x14], 0x4c
jne 0x4aa1b4
cmp word [ebx + 0x16], 1
je 0x4aa1b4
xor ecx, ecx
mov dword [ebx + 0x78], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret