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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xfc
mov dword [esp + 0xb8], edx
mov dword [esp + 0x3c], ecx
mov ebp, dword [ecx + 0x38]
mov eax, dword [ebp + 0x1c]
add ebp, 0x1c
movzx esi, word [eax + 0x10]
lea ecx, [esp + 0xf0]
push ebp
call fcn.004849a0
cmp esi, 0x400
mov dword [esp + 0x5c], ebp
je 0x497cfa
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x497cfa
mov edi, dword [esp + 0xf0]
lea eax, [eax + eax*4]
lea eax, [edi + eax*8]
mov dword [esp + 0xe4], eax
jmp 0x4975a2
mov eax, dword [esp + 0xe4]
add edi, 0x28
cmp edi, eax
je 0x49821a
cmp dword [edi + 4], 0x7000000
jne 0x497597
mov dword [esp + 0x98], 0x43ad10
mov dword [esp + 0xe8], 0x43b380
lea eax, [esp + 0x98]
mov dword [esp + 0xec], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0xf8]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], ebp
lea ecx, [esp + 0x10]
call fcn.00488560
test byte [esp + 8], 1
jne 0x497610
mov eax, dword [esp]
mov ebx, dword [esp + 4]
mov ecx, ebx
shr ecx, 8
shld ebx, eax, 0x18
mov dl, 1
mov dword [esp + 0x30], edx
jmp 0x497653
mov eax, dword [esp]
mov dword [esp], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004077c0
add esp, 0xc
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x497642
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x94]
mov edx, edi
mov edi, dword [edi + 0x10]
mov esi, dword [edx + 0x14]
mov dword [esp + 0x38], edx
mov edx, dword [edx + 0x20]
mov ebp, ebx
shl ebx, 8
movzx eax, al
or eax, ebx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x2c], ebp
shld ecx, ebp, 8
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x70], al
mov dword [esp + 0x18], edi
bswap edx
mov dword [esp + 0x48], esi
sub esp, 0x1c
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
movsd xmm0, qword [esp + 0x84]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x12c]
mov dword [esp], eax
call dword [esp + 0xd4]
add esp, 0x1c
test byte [esp + 8], 1
je 0x4976f0
mov ecx, dword [esp]
mov dword [esp], 0
test ecx, ecx
je 0x4976f0
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x68]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x3c]
mov ebp, dword [esp + 0x64]
push ebp
call fcn.00498260
lea eax, [esp + 0x78]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov edi, dword [esp + 0x68]
test edi, edi
mov ebx, dword [esp + 0x2c]
je 0x497a96
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
lea ecx, [eax + 0xb]
mov dword [esp + 0x44], ecx
mov ebp, eax
neg ebp
dec eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], 0
nop word cs:[eax + eax]
mov dword [esp + 0x64], edi
push 0
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x120]
lea eax, [esp + 0x40]
push eax
call dword [esp + 0x124]
add esp, 0x10
cmp dword [esp + 0x34], 0
je 0x4979ea
mov dword [esp + 0xd0], str.unable_to_read_note_with_index
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd8], eax
mov word [esp + 0xe0], 0x803
lea eax, [esp + 0xd0]
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], str._from_the
mov word [esp + 0xa8], 0x302
lea ecx, [esp + 0x48]
mov ebx, dword [esp + 0x5c]
push ebx
call fcn.004849a0
mov edx, dword [esp + 0x38]
mov eax, edx
sub eax, dword [esp + 0x48]
sar eax, 3
mov ecx, dword [ebx]
movzx ecx, word [ecx + 0x12]
rol cx, 8
imul ebx, eax, 0xcccccccd
movzx eax, cx
mov ecx, dword [edx + 4]
bswap ecx
push ecx
push eax
call fcn.005509d8
add esp, 8
mov word [esp + 0x28], 0x305
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], str._section_with_index
lea eax, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 8], ebx
mov ebx, esp
mov word [esp + 0x10], 0x802
lea ecx, [esp + 0x88]
push ebx
call fcn.00550b46
movzx eax, byte [esp + 0xa8]
cmp eax, 1
je 0x497870
test eax, eax
jne 0x497890
mov word [esp + 0x58], 0x100
mov cl, 1
xor eax, eax
mov ebx, dword [esp + 0x2c]
jmp 0x4978f3
lea edx, [esp + 0x88]
mov dword [esp + 0x48], edx
mov word [esp + 0x58], 0x104
mov al, 4
mov ecx, dword [esp + 0x4c]
jmp 0x4978dd
cmp byte [esp + 0xa9], 1
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0x98]
cmovne ecx, edx
movzx eax, al
mov edx, 2
cmovne eax, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x88]
mov dword [esp + 0x50], ecx
mov byte [esp + 0x58], al
mov byte [esp + 0x59], 4
mov al, 2
lea edx, [esp + 0x48]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0x558038
mov cl, 3
mov byte [esp + 0x28], al
mov byte [esp + 0x29], cl
mov eax, dword [esp + 0x34]
mov dword [esp + 0xcc], eax
mov dword [esp + 0x34], 0
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x28]
mov cl, 1
test eax, eax
je 0x497987
cmp eax, 1
jne 0x497950
lea eax, [esp + 0xac]
mov dword [esp], eax
mov al, 4
jmp 0x497987
cmp byte [esp + 0x29], 1
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x18]
cmovne ecx, edx
mov edx, dword [esp + 0x1c]
movzx eax, al
mov ebx, 2
cmovne eax, ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [esp + 0xac]
mov dword [esp + 8], ecx
mov cl, 4
mov byte [esp + 0x10], al
mov byte [esp + 0x11], cl
mov ecx, dword [esp + 0x3c]
mov eax, esp
push eax
call fcn.0053aad0
test byte [esp + 0xac], 1
je 0x4979b4
push dword [esp + 0xb4]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x4979c4
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x88], 1
je 0x4979dd
push dword [esp + 0x90]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4979ea
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
bswap ecx
add ecx, dword [esp + 0x44]
and ecx, ebp
bswap eax
add eax, dword [esp + 0x30]
and eax, ebp
add eax, ecx
sub esi, eax
je 0x497a8a
cmp esi, 0xb
jbe 0x497a40
mov ecx, dword [edi + eax]
mov edx, dword [edi + eax + 4]
bswap ecx
add ecx, dword [esp + 0x44]
and ecx, ebp
bswap edx
add edx, dword [esp + 0x30]
and edx, ebp
add edx, ecx
cmp edx, esi
ja 0x497a40
add edi, eax
mov eax, dword [esp + 0x60]
mov dword [eax], 0
inc dword [esp + 0x40]
jmp 0x497760
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [esp], str.ELF_note_overflows_container
mov word [esp + 0x10], 0x103
call fcn.00550996
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0xc]
mov dword [esp], eax
mov ecx, edi
call fcn.005507bc
jmp 0x497a8c
xor edi, edi
mov eax, dword [esp + 0x60]
mov dword [eax], edi
mov ebp, dword [esp + 0x5c]
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x38]
je 0x497c64
lea ecx, [esp + 0x18]
push ebp
call fcn.004849a0
mov eax, edi
sub eax, dword [esp + 0x18]
sar eax, 3
mov ecx, dword [ebp]
movzx ecx, word [ecx + 0x12]
rol cx, 8
imul esi, eax, 0xcccccccd
movzx eax, cx
mov ecx, dword [edi + 4]
bswap ecx
push ecx
push eax
call fcn.005509d8
add esp, 8
mov word [esp + 0x10], 0x305
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], str._section_with_index
mov eax, esp
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], esi
mov word [esp + 0x78], 0x802
lea esi, [esp + 0x98]
mov ecx, esi
lea eax, [esp + 0x68]
push eax
call fcn.00550b46
mov ecx, esi
push str.unable_to_read_notes_from_the
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 0x48], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea ecx, [esp + 0x48]
push 0x558038
call fcn.00550f36
movsd xmm0, qword [eax]
movsd qword [esp + 0x18], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc8], eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0xd0]
test al, 1
je 0x497bc2
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
jmp 0x497bcb
shr eax, 1
lea edx, [esp + 0xd1]
lea ecx, [esp + 0x18]
push eax
push edx
call fcn.00550f3c
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x78], 0x104
mov eax, esp
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x68]
push eax
call fcn.0053aad0
test byte [esp], 1
jne 0x497c8b
test byte [esp + 0xd0], 1
jne 0x497ca1
mov ecx, dword [esp + 0xc8]
test ecx, ecx
je 0x497c35
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x18], 1
jne 0x497cc4
test byte [esp + 0x48], 1
jne 0x497cdb
test byte [esp + 0x98], 1
je 0x497c64
push dword [esp + 0xa0]
call sub.libc.dll_operator_delete_void_
add esp, 4
push dword [esp + 0x120]
call dword [esp + 0x120]
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x497590
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x497590
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xd0], 1
je 0x497c25
push dword [esp + 0xd8]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xc8]
test ecx, ecx
jne 0x497c30
jmp 0x497c35
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x48], 1
je 0x497c4b
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x98], 1
jne 0x497c55
jmp 0x497c64
lea ecx, [esp + 0x88]
push ebp
call fcn.00487300
test byte [esp + 0x90], 1
jne 0x49815d
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x4981f5
xor edi, edi
movzx eax, si
mov dword [esp + 0x60], eax
mov dword [esp + 0x94], edx
jmp 0x497d50
mov edx, dword [esp + 0x94]
inc edi
cmp edi, edx
je 0x4981f5
mov eax, dword [esp + 0x88]
mov ecx, edi
shl ecx, 5
cmp dword [eax + ecx], 0x4000000
jne 0x497d47
mov dword [esp + 0x38], edi
lea esi, [eax + ecx]
mov edx, dword [eax + ecx + 4]
mov edi, dword [eax + ecx + 0x10]
mov eax, dword [eax + ecx + 0x1c]
bswap eax
mov byte [esp + 0x68], 0
mov byte [esp + 0x70], 0
mov dword [esp], edx
mov dword [esp + 0x18], edi
sub esp, 0x1c
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xc], ecx
movsd xmm0, qword [esp + 0x84]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x12c]
mov dword [esp], eax
call dword [esp + 0xd4]
add esp, 0x1c
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x68]
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call fcn.00498530
lea eax, [esp + 0x78]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x498056
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
lea ecx, [eax + 0xb]
mov dword [esp + 0x44], ecx
mov esi, eax
neg esi
dec eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], 0
lea edi, [esp + 0x64]
nop word cs:[eax + eax]
xor eax, eax
cmp dword [esp + 0x60], 0x400
sete al
mov dword [esp + 0x64], ebx
push eax
push edi
push dword [esp + 0x120]
lea eax, [esp + 0x40]
push eax
call dword [esp + 0x124]
add esp, 0x10
mov eax, dword [esp + 0x34]
test eax, eax
je 0x497fa1
mov dword [esp + 0xd0], str.unable_to_read_note_with_index
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xd8], ecx
mov word [esp + 0xe0], 0x803
lea ecx, [esp + 0xd0]
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa0], str._from_the_PT_NOTE_segment_with_index
mov word [esp + 0xa8], 0x302
lea ecx, [esp + 0x98]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov word [esp + 0x58], 0x802
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0x558038
mov word [esp + 0x28], 0x302
mov dword [esp + 0xc0], eax
mov dword [esp + 0x34], 0
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x28]
mov cl, 1
test eax, eax
je 0x497f57
cmp eax, 1
jne 0x497f20
lea eax, [esp + 0xac]
mov dword [esp], eax
mov al, 4
jmp 0x497f57
cmp byte [esp + 0x29], 1
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x18]
cmovne ecx, edx
mov edx, dword [esp + 0x1c]
movzx eax, al
mov edi, 2
cmovne eax, edi
lea edi, [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [esp + 0xac]
mov dword [esp + 8], ecx
mov cl, 4
mov byte [esp + 0x10], al
mov byte [esp + 0x11], cl
mov ecx, dword [esp + 0x3c]
mov eax, esp
push eax
call fcn.0053aad0
test byte [esp + 0xac], 1
je 0x497f84
push dword [esp + 0xb4]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x497f94
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x497fa1
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
bswap ecx
add ecx, dword [esp + 0x44]
and ecx, esi
bswap eax
add eax, dword [esp + 0x30]
and eax, esi
add eax, ecx
sub ebp, eax
je 0x49804a
cmp ebp, 0xb
jbe 0x498000
mov ecx, dword [ebx + eax]
mov edx, dword [ebx + eax + 4]
bswap ecx
add ecx, dword [esp + 0x44]
and ecx, esi
bswap edx
add edx, dword [esp + 0x30]
and edx, esi
add edx, ecx
cmp edx, ebp
ja 0x498000
add ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [eax], 0
inc dword [esp + 0x40]
jmp 0x497e30
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp], str.ELF_note_overflows_container
mov word [esp + 0x10], 0x103
call fcn.00550996
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0xc]
mov dword [esp], eax
mov ecx, ebx
call fcn.005507bc
jmp 0x49804c
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov dword [eax], ebx
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, dword [esp + 0x38]
je 0x498136
mov dword [esp + 0x18], str.unable_to_read_notes_from_the_PT_NOTE_segment_with_index
mov dword [esp + 0x20], edi
mov word [esp + 0x28], 0x803
lea ecx, [esp + 0x18]
mov dword [esp], ecx
mov dword [esp + 8], 0x558038
mov word [esp + 0x10], 0x302
mov dword [esp + 0xbc], eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x10]
mov cl, 1
test eax, eax
je 0x4980fd
cmp eax, 1
jne 0x4980cf
lea eax, [esp + 0x48]
mov dword [esp + 0x68], eax
mov al, 4
jmp 0x4980fd
cmp byte [esp + 0x11], 1
mov ecx, dword [esp]
mov edx, esp
cmovne ecx, edx
mov edx, dword [esp + 4]
movzx eax, al
mov esi, 2
cmovne eax, esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], ecx
mov cl, 4
mov byte [esp + 0x78], al
mov byte [esp + 0x79], cl
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x68]
push eax
call fcn.0053aad0
test byte [esp + 0x48], 1
je 0x498126
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x498136
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x120]
call dword [esp + 0x120]
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x497d40
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x497d40
mov eax, dword [esp + 0x88]
mov dword [esp + 0x88], 0
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xc4]
lea edi, [esp + 0x18]
push eax
push edi
call fcn.00550abc
add esp, 8
mov ecx, edi
push str.unable_to_read_program_headers_to_locate_the_PT_NOTE_segment:
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x78], 0x104
mov eax, esp
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x3c]
push eax
call fcn.0053aad0
test byte [esp], 1
jne 0x498225
test byte [esp + 0x18], 1
jne 0x498238
mov ecx, dword [esp + 0xc4]
test ecx, ecx
je 0x4981f5
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x90], 1
je 0x49821a
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x88], 0
test ecx, ecx
je 0x49821a
mov eax, dword [ecx]
call dword [eax + 4]
add esp, 0xfc
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x18], 1
je 0x4981e5
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xc4]
test ecx, ecx
jne 0x4981f0
jmp 0x4981f5