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

Disassembly:
push 0xffffffffffffffff
push 0x4d219a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf40
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0xcc]
call fcn.0046bef0
xor ebx, ebx
lea ecx, [esp + 0xf8]
mov dword [esp + 0xf58], ebx
call fcn.0046bef0
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0xf5c], 1
mov byte [esp + 0x54], al
call fcn.00406ae1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov ecx, dword [ebp + 4]
mov byte [esp + 0xf58], 2
mov eax, dword [ecx + 8]
cmp eax, 4
jne 0x496cbf
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xf5c], 1
call fcn.00406ae1
jmp 0x497a05
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xbc]
test eax, eax
jne 0x496d3c
push 0x4f9624
push 0x501fc0
call fcn.00422030
mov eax, dword [esp + 0x68]
add esp, 8
cmp eax, ebx
mov byte [esp + 0xf58], 1
je 0x496cfd
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x60], ebx
push 1
lea ecx, [esp + 0x54]
call fcn.00406ae1
lea ecx, [esp + 0xf8]
mov byte [esp + 0xf58], bl
call fcn.0046bf70
lea ecx, [esp + 0xcc]
mov dword [esp + 0xf58], 0xffffffff
call fcn.0046bf70
mov eax, 0x80004005
jmp 0x497a31
mov edi, dword [ebp + 4]
push 1
mov ecx, edi
mov dword [esp + 0x84], edi
call fcn.00431d80
test eax, eax
ja 0x496f74
mov eax, dword [ebp]
lea ecx, [esp + 0xcc]
push 1
push ecx
mov ecx, ebp
call dword [eax + 0x3c]
test eax, eax
jne 0x496f74
mov edx, dword [edi]
mov ecx, edi
mov esi, 1
call dword [edx + 0x14]
test eax, eax
je 0x496d86
mov esi, 3
lea eax, [esp + 0x18]
push ebx
push eax
push 0x1c49
lea ecx, [esp + 0xd8]
call fcn.0046caf0
push esi
push 0x1c49
lea ecx, [esp + 0xd4]
call fcn.0046d680
mov eax, dword [edi + 0xb8]
lea ecx, [esp + 0xcc]
push eax
push 0x1c4c
call fcn.0046d680
mov ecx, edi
call fcn.00434d80
push eax
push 0x14b5
lea ecx, [esp + 0xd4]
call fcn.0046d680
lea ecx, [esp + 0x1c]
push ebx
push ecx
push 0x1c55
lea ecx, [esp + 0xd8]
call fcn.0046caf0
mov ecx, dword [edi + 0x1a0]
cmp ecx, ebx
jne 0x496e05
xor eax, eax
jmp 0x496e10
mov eax, dword [edi + 0x1a4]
sub eax, ecx
sar eax, 2
push eax
push 0x1c55
lea ecx, [esp + 0xd4]
call fcn.0046d680
mov eax, dword [edi + 0x1ac]
lea ecx, [esp + 0xcc]
push eax
push 0x48
call fcn.0046d680
push 0x6c
lea ecx, [esp + 0xd0]
call fcn.0046e530
push 0x1519
lea ecx, [esp + 0xd0]
call fcn.0046e530
mov eax, dword [edi + 0x1a0]
cmp eax, ebx
je 0x496e70
mov edx, dword [edi + 0x1a4]
sub edx, eax
test edx, 0xfffffffc
jne 0x496e83
push 0xbeb
lea ecx, [esp + 0xd0]
call fcn.0046e530
jmp 0x496eb8
push 0x4f95d8
push 0x501fc0
call fcn.00422030
add esp, 8
mov ecx, edi
push ebx
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00436670
push 0xbeb
lea ecx, [esp + 0xec]
call fcn.0046d840
cmp dword [esp + 0x1c], ebx
jne 0x496f19
mov eax, dword [edi + 0x1a0]
cmp eax, ebx
je 0x496f74
mov ecx, dword [edi + 0x1a4]
sub ecx, eax
sar ecx, 2
je 0x496f74
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
mov dword [esp + 0x18], ebx
call fcn.004962c0
cmp eax, ebx
jl 0x496f13
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x496f13
mov ecx, dword [0x502164]
push eax
call fcn.00480350
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x496f13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x1c], ebx
je 0x496f74
mov eax, dword [edi + 0x1a0]
cmp eax, ebx
je 0x496f33
mov edx, dword [edi + 0x1a4]
sub edx, eax
test edx, 0xfffffffc
jne 0x496f74
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
mov dword [esp + 0x18], ebx
call fcn.004962c0
cmp eax, ebx
jl 0x496f74
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x496f74
mov ecx, dword [0x502164]
push eax
call fcn.00480210
mov ecx, dword [0x502164]
call fcn.00480960
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x496f74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x6c], dl
call fcn.00406ae1
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
xor ebp, ebp
mov byte [esp + 0xf58], 3
mov dword [esp + 0x20], ebp
mov eax, dword [edi + 0x1a0]
cmp eax, ebx
je 0x497979
mov ecx, dword [edi + 0x1a4]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jae 0x497979
lea ecx, [esp + 0x1b8]
call fcn.0046bef0
cmp ebp, ebx
mov byte [esp + 0xf58], 4
jl 0x496ff6
lea esi, [edi + 0x19c]
mov ecx, esi
call fcn.00455260
cmp ebp, eax
jae 0x496ff6
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
call fcn.00410be2
mov ebp, dword [eax]
jmp 0x496ffc
mov ebp, dword [pe_dos_header]
lea eax, [esp + 0x128]
mov ecx, ebp
push eax
call fcn.00427050
mov ecx, dword [0x502164]
lea esi, [esp + 0x1b8]
push 1
push esi
mov edx, dword [ecx]
push eax
mov byte [esp + 0xf64], 5
call dword [edx + 0x3c]
test eax, eax
mov eax, dword [esp + 0x138]
mov byte [esp + 0xf58], 4
sete byte [esp + 0x13]
cmp eax, ebx
je 0x497053
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x138], ebx
push 1
lea ecx, [esp + 0x12c]
call fcn.00406ae1
cmp byte [esp + 0x13], bl
je 0x497103
mov ecx, edi
call fcn.00436570
test al, al
je 0x4970ce
push ebp
mov ecx, edi
call fcn.00433ec0
test eax, eax
je 0x4970a6
mov eax, dword [esp + 0x20]
push eax
push 0x4f9560
push 0x501fc0
call fcn.00422030
add esp, 0xc
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
jmp 0x4970eb
push 0x4f94d0
push 0x501fc0
call fcn.00422030
add esp, 8
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x501a04
call fcn.00405d32
jmp 0x4970f2
push 0x4f9480
push 0x501fc0
call fcn.00422030
add esp, 8
push ebx
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov ecx, edi
call fcn.00436670
push 0xbeb
lea ecx, [esp + 0x1d8]
call fcn.0046d840
lea eax, [esp + 0x170]
mov ecx, ebp
push eax
call fcn.00427050
mov eax, dword [eax + 4]
mov byte [esp + 0xf58], 6
cmp eax, ebx
jne 0x497126
mov eax, 0x4d58e0
push eax
lea ecx, [esp + 0x6c]
push 0x64a
push ecx
call fcn.004299b0
mov eax, dword [esp + 0x18c]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0xf58], 4
je 0x49715c
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x180], ebx
push 1
lea ecx, [esp + 0x174]
call fcn.00406ae1
lea edx, [esp + 0x68]
push 1
push edx
push 0x80000002
lea ecx, [esp + 0x104]
call fcn.0046c0b0
test eax, eax
jne 0x497413
push ebx
lea eax, [esp + 0x6c]
push 1
push eax
push 0x80000002
lea ecx, [esp + 0x108]
call fcn.0046c4d0
test eax, eax
je 0x497955
lea ecx, [esp + 0x1e4]
call fcn.0046bef0
lea ecx, [esp + 0x210]
mov byte [esp + 0xf58], 7
call fcn.0046bef0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x88], cl
lea ecx, [esp + 0x88]
mov byte [esp + 0xf5c], 8
call fcn.00406ae1
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0xb8]
mov byte [esp + 0xf5c], 9
mov byte [esp + 0xb8], dl
call fcn.00406ae1
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
lea eax, [esp + 0x1a0]
mov ecx, ebp
push eax
mov byte [esp + 0xf5c], 0xa
call fcn.00427050
mov eax, dword [eax + 4]
mov byte [esp + 0xf58], 0xb
cmp eax, ebx
jne 0x497252
mov eax, 0x4d58e0
push eax
lea ecx, [esp + 0x88]
push 0x1cc6
push ecx
call fcn.004299b0
mov eax, dword [esp + 0x1bc]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0xf58], 0xa
je 0x49728b
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x1b0], ebx
push 1
lea ecx, [esp + 0x1a4]
call fcn.00406ae1
lea edx, [esp + 0x84]
push 1
push edx
push 0x80000002
lea ecx, [esp + 0x1f0]
call fcn.0046c0b0
test eax, eax
je 0x497389
lea eax, [esp + 0x18]
push ebx
push eax
push 0x1bb2
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x24], ebx
call fcn.0046caf0
push ebx
push 0x1bb2
lea ecx, [esp + 0x1ec]
call fcn.0046d680
lea ecx, [esp + 0x158]
push ecx
mov ecx, ebp
call fcn.00427050
mov eax, dword [eax + 4]
mov byte [esp + 0xf58], 0xc
cmp eax, ebx
jne 0x49730c
mov eax, 0x4d58e0
push eax
lea edx, [esp + 0xb8]
push 0x653
push edx
call fcn.004299b0
mov eax, dword [esp + 0x174]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0xf58], 0xa
je 0x497345
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x168], ebx
push 1
lea ecx, [esp + 0x15c]
call fcn.00406ae1
push ebx
lea eax, [esp + 0xb8]
push 1
push eax
push 0x80000002
lea ecx, [esp + 0x220]
call fcn.0046c4d0
test eax, eax
je 0x497389
mov ecx, dword [esp + 0x18]
push ecx
push 0x1bb2
lea ecx, [esp + 0x218]
call fcn.0046d680
mov eax, dword [esp + 0xc4]
mov byte [esp + 0xf58], 9
cmp eax, ebx
je 0x4973ac
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0xc4], ebx
push 1
lea ecx, [esp + 0xb8]
call fcn.00406ae1
mov eax, dword [esp + 0x94]
mov byte [esp + 0xf58], 8
cmp eax, ebx
je 0x4973dd
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x94], ebx
push 1
lea ecx, [esp + 0x88]
call fcn.00406ae1
lea ecx, [esp + 0x210]
mov byte [esp + 0xf58], 7
call fcn.0046bf70
lea ecx, [esp + 0x1e4]
mov byte [esp + 0xf58], 4
call fcn.0046bf70
mov ecx, edi
call fcn.00434d80
push eax
push 0x14b5
lea ecx, [esp + 0x100]
call fcn.0046d680
mov eax, dword [edi + 0xb8]
lea ecx, [esp + 0xf8]
push eax
push 0x1c4c
call fcn.0046d680
mov ecx, dword [edi + 0x1a0]
cmp ecx, ebx
jne 0x497452
xor eax, eax
jmp 0x49745d
mov eax, dword [edi + 0x1a4]
sub eax, ecx
sar eax, 2
push eax
push 0x1c55
lea ecx, [esp + 0x100]
call fcn.0046d680
push ebp
mov ecx, edi
xor esi, esi
call fcn.00433ec0
test eax, eax
je 0x497484
mov esi, 1
jmp 0x497495
push ebp
mov ecx, edi
call fcn.00433ee0
test eax, eax
je 0x497495
mov esi, 2
push esi
push 0x49
lea ecx, [esp + 0x100]
call fcn.0046d680
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x10]
push eax
push 0x1c56
lea ecx, [esp + 0x100]
call fcn.0046d680
mov ecx, dword [esp + 0x20]
push ebx
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x34], esp
push eax
push ecx
mov ecx, edi
call fcn.00421ba6
mov ecx, eax
call fcn.00409073
push 0x1c86
lea ecx, [esp + 0x118]
call fcn.0046d840
push 1
mov ecx, edi
call fcn.00431d80
test eax, eax
ja 0x4976c3
mov dl, byte [esp + 0x13]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], dl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], vtable.a_._ASERTnditISOArrayloa_ilrrce_.0
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xf5c], 0xd
mov byte [esp + 0xa0], al
call fcn.00406ae1
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
lea ecx, [esp + 0x188]
mov byte [esp + 0xf58], 0xe
push ecx
mov ecx, edi
call fcn.00427050
mov eax, dword [eax + 4]
mov byte [esp + 0xf58], 0xf
cmp eax, ebx
jne 0x497573
mov eax, 0x4d58e0
push eax
lea edx, [esp + 0xa0]
push 0x1bab
push edx
call fcn.004299b0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0xf58], 0xe
je 0x4975ac
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x198], ebx
push 1
lea ecx, [esp + 0x18c]
call fcn.00406ae1
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x9c]
push eax
push 1
push ecx
lea ecx, [esp + 0x34]
call fcn.00436fa0
lea edx, [esp + 0x24]
lea ecx, [esp + 0xf8]
push edx
push 0xcd
call fcn.0046dc60
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4975f4
xor edx, edx
jmp 0x49760b
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0xce
lea ecx, [esp + 0x100]
call fcn.0046d680
push 0x1be8
lea ecx, [esp + 0xfc]
call fcn.0046e530
mov eax, dword [esp + 0xac]
mov byte [esp + 0xf58], 0xd
cmp eax, ebx
je 0x497651
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0xac], ebx
push 1
lea ecx, [esp + 0xa0]
call fcn.00406ae1
mov dword [esp + 0x24], vtable.a_._ASERTnditISOArrayloa_ilrrce_.0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0xf60], 0x10
call fcn.0040b58e
lea esi, [esp + 0x24]
lea eax, [esp + 0x28]
neg esi
sbb esi, esi
mov byte [esp + 0xf58], 4
and esi, eax
mov dword [esp + 0x124], esi
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00436c50
mov eax, dword [esi + 4]
push eax
call fcn.004bcb64
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
add esp, 4
mov dword [esi + 0xc], ebx
lea eax, [esp + 0x140]
mov ecx, ebp
push eax
mov dword [esp + 0x18], ebx
call fcn.00427050
mov edx, dword [0x4d6970]
sub esp, 0x10
mov ecx, esp
mov byte [esp + 0xf68], 0x11
mov dword [ecx], edx
mov edx, dword [0x4d6974]
mov dword [ecx + 4], edx
mov edx, dword [0x4d6978]
mov dword [ecx + 8], edx
mov edx, dword [0x4d697c]
mov dword [ecx + 0xc], edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x502164]
push eax
call fcn.0047ff10
test eax, eax
mov eax, dword [esp + 0x150]
mov byte [esp + 0xf58], 4
sete byte [esp + 0x13]
cmp eax, ebx
je 0x497741
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x150], ebx
push 1
lea ecx, [esp + 0x144]
call fcn.00406ae1
cmp byte [esp + 0x13], bl
je 0x497947
mov edx, dword [esp + 0x14]
mov ecx, dword [0x502164]
push edx
call fcn.00480210
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x3c], al
call fcn.00406ae1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [0x5021a4]
mov byte [esp + 0xf58], 0x12
cmp eax, ebx
jne 0x4977cf
push 0x4ee65c
lea ecx, [esp + 0x744]
push 0x4e92c0
push ecx
call dword [0x4d52e8]
add esp, 0xc
lea edx, [esp + 0x740]
mov ecx, 0x501fc0
push edx
push 0x556
push 0x4f0af8
call fcn.00421fb0
mov ecx, dword [0x5021a4]
lea eax, [esp + 0x23c]
push 0x104
push eax
push 0x213e
push ecx
call dword [0x4d52dc]
cmp eax, ebx
je 0x49783d
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.00406a5c
test al, al
je 0x497862
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x23c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], ebp
mov byte [eax + ebp], bl
jmp 0x497862
push 0x4f7070
push 0x25ca
push 0x4f7ea0
lea ecx, [esp + 0xb4c]
push 0x4ee5ec
push ecx
call dword [0x4d52e8]
add esp, 0x14
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x49786f
mov eax, 0x4d58e0
push 0x400
lea edx, [esp + 0x344]
push eax
push edx
call fcn.004bfd9e
mov edx, dword [0x4d6984]
push ecx
mov ecx, dword [0x4d6980]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x4d6988]
mov dword [eax + 4], edx
mov edx, dword [0x4d698c]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x350]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [0x502164]
call fcn.0047fe60
test eax, eax
jne 0x4978e4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x502164]
push edx
push eax
call fcn.00480490
mov ecx, dword [0x502164]
call fcn.00480960
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4978f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x48]
mov byte [esp + 0xf58], 4
cmp eax, ebx
je 0x49790f
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x497934
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49792b
cmp al, 0xff
je 0x49792b
dec al
mov byte [ecx], al
jmp 0x497934
push ecx
call fcn.004bcb64
add esp, 4
mov edi, dword [esp + 0x80]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x497955
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0xf58], 3
call fcn.0046bf70
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov ebp, eax
jmp 0x496f9c
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x49798e
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x4979b3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4979aa
cmp al, 0xff
je 0x4979aa
dec al
mov byte [ecx], al
jmp 0x4979b3
push ecx
call fcn.004bcb64
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x6c], ebx
cmp eax, ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
je 0x4979d4
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x4979f9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4979f0
cmp al, 0xff
je 0x4979f0
dec al
mov byte [ecx], al
jmp 0x4979f9
push ecx
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0xf8]
mov byte [esp + 0xf58], bl
call fcn.0046bf70
lea ecx, [esp + 0xcc]
mov dword [esp + 0xf58], 0xffffffff
call fcn.0046bf70
xor eax, eax
mov ecx, dword [esp + 0xf50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xf4c
ret