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

Disassembly:
push 0xffffffffffffffff
push 0x4d399a
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.0046ceb0
xor ebx, ebx
lea ecx, [esp + 0xf8]
mov dword [esp + 0xf58], ebx
call fcn.0046ceb0
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0xf5c], 1
mov byte [esp + 0x54], al
call fcn.00406ad6
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 0x497c0f
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xf5c], 1
call fcn.00406ad6
jmp 0x498955
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xbc]
test eax, eax
jne 0x497c8c
push str.ERROR:_CNetCfgInterfaceComponentWin2000::TeamUpdateParameters____Parent_is_not_a_team._n
push 0x503ff0
call fcn.00423100
mov eax, dword [esp + 0x68]
add esp, 8
cmp eax, ebx
mov byte [esp + 0xf58], 1
je 0x497c4d
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x60], ebx
push 1
lea ecx, [esp + 0x54]
call fcn.00406ad6
lea ecx, [esp + 0xf8]
mov byte [esp + 0xf58], bl
call fcn.0046cf30
lea ecx, [esp + 0xcc]
mov dword [esp + 0xf58], 0xffffffff
call fcn.0046cf30
mov eax, 0x80004005
jmp 0x498981
mov edi, dword [ebp + 4]
push 1
mov ecx, edi
mov dword [esp + 0x84], edi
call fcn.00432ab0
test eax, eax
ja 0x497ec4
mov eax, dword [ebp]
lea ecx, [esp + 0xcc]
push 1
push ecx
mov ecx, ebp
call dword [eax + 0x3c]
test eax, eax
jne 0x497ec4
mov edx, dword [edi]
mov ecx, edi
mov esi, 1
call dword [edx + 0x14]
test eax, eax
je 0x497cd6
mov esi, 3
lea eax, [esp + 0x18]
push ebx
push eax
push 0x1c49
lea ecx, [esp + 0xd8]
call fcn.0046dab0
push esi
push 0x1c49
lea ecx, [esp + 0xd4]
call fcn.0046e640
mov eax, dword [edi + 0xb8]
lea ecx, [esp + 0xcc]
push eax
push 0x1c4c
call fcn.0046e640
mov ecx, edi
call fcn.00435aa0
push eax
push 0x14b5
lea ecx, [esp + 0xd4]
call fcn.0046e640
lea ecx, [esp + 0x1c]
push ebx
push ecx
push 0x1c55
lea ecx, [esp + 0xd8]
call fcn.0046dab0
mov ecx, dword [edi + 0x1a0]
cmp ecx, ebx
jne 0x497d55
xor eax, eax
jmp 0x497d60
mov eax, dword [edi + 0x1a4]
sub eax, ecx
sar eax, 2
push eax
push 0x1c55
lea ecx, [esp + 0xd4]
call fcn.0046e640
mov eax, dword [edi + 0x1ac]
lea ecx, [esp + 0xcc]
push eax
push 0x48
call fcn.0046e640
push 0x6c
lea ecx, [esp + 0xd0]
call fcn.0046f4f0
push 0x1519
lea ecx, [esp + 0xd0]
call fcn.0046f4f0
mov eax, dword [edi + 0x1a0]
cmp eax, ebx
je 0x497dc0
mov edx, dword [edi + 0x1a4]
sub edx, eax
test edx, 0xfffffffc
jne 0x497dd3
push 0xbeb
lea ecx, [esp + 0xd0]
call fcn.0046f4f0
jmp 0x497e08
push str.CNetCfgInterfaceComponentWin2000::TeamUpdateParameters_Getting_Mac_Address
push 0x503ff0
call fcn.00423100
add esp, 8
mov ecx, edi
push ebx
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00437390
push 0xbeb
lea ecx, [esp + 0xec]
call fcn.0046e800
cmp dword [esp + 0x1c], ebx
jne 0x497e69
mov eax, dword [edi + 0x1a0]
cmp eax, ebx
je 0x497ec4
mov ecx, dword [edi + 0x1a4]
sub ecx, eax
sar ecx, 2
je 0x497ec4
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
mov dword [esp + 0x18], ebx
call fcn.00497210
cmp eax, ebx
jl 0x497e63
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x497e63
mov ecx, dword [0x504194]
push eax
call fcn.004811b0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x497e63
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x1c], ebx
je 0x497ec4
mov eax, dword [edi + 0x1a0]
cmp eax, ebx
je 0x497e83
mov edx, dword [edi + 0x1a4]
sub edx, eax
test edx, 0xfffffffc
jne 0x497ec4
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
mov dword [esp + 0x18], ebx
call fcn.00497210
cmp eax, ebx
jl 0x497ec4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x497ec4
mov ecx, dword [0x504194]
push eax
call fcn.00481070
mov ecx, dword [0x504194]
call fcn.004817c0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x497ec4
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.00406ad6
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 0x4988c9
mov ecx, dword [edi + 0x1a4]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jae 0x4988c9
lea ecx, [esp + 0x1b8]
call fcn.0046ceb0
cmp ebp, ebx
mov byte [esp + 0xf58], 4
jl 0x497f46
lea esi, [edi + 0x19c]
mov ecx, esi
call fcn.00456230
cmp ebp, eax
jae 0x497f46
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
call fcn.00410c04
mov ebp, dword [eax]
jmp 0x497f4c
mov ebp, dword [pe_dos_header]
lea eax, [esp + 0x128]
mov ecx, ebp
push eax
call fcn.00428170
mov ecx, dword [0x504194]
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 0x497fa3
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x138], ebx
push 1
lea ecx, [esp + 0x12c]
call fcn.00406ad6
cmp byte [esp + 0x13], bl
je 0x498053
mov ecx, edi
call fcn.00437290
test al, al
je 0x49801e
push ebp
mov ecx, edi
call fcn.00434be0
test eax, eax
je 0x497ff6
mov eax, dword [esp + 0x20]
push eax
push str.CNetCfgInterfaceComponentWin2000::TeamUpdateParameters_Setting_NetworkAddress_for_Preferred_Primary_on_Team_Adapter__d
push 0x503ff0
call fcn.00423100
add esp, 0xc
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
jmp 0x49803b
push str.CNetCfgInterfaceComponentWin2000::TeamUpdateParameters__:_For_the_RLB_Team_preserve_the_member_adapter__non_primary_s_Network_Address_Setting.
push 0x503ff0
call fcn.00423100
add esp, 8
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x503a34
call fcn.00405d20
jmp 0x498042
push str.CNetCfgInterfaceComponentWin2000::TeamUpdateParameters_Setting_NetworkAddress
push 0x503ff0
call fcn.00423100
add esp, 8
push ebx
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov ecx, edi
call fcn.00437390
push 0xbeb
lea ecx, [esp + 0x1d8]
call fcn.0046e800
lea eax, [esp + 0x170]
mov ecx, ebp
push eax
call fcn.00428170
mov eax, dword [eax + 4]
mov byte [esp + 0xf58], 6
cmp eax, ebx
jne 0x498076
mov eax, 0x4d68e8
push eax
lea ecx, [esp + 0x6c]
push 0x64a
push ecx
call fcn.0041c3cf
mov eax, dword [esp + 0x18c]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0xf58], 4
je 0x4980ac
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x180], ebx
push 1
lea ecx, [esp + 0x174]
call fcn.00406ad6
lea edx, [esp + 0x68]
push 1
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x104]
call fcn.0046d070
test eax, eax
jne 0x498363
push ebx
lea eax, [esp + 0x6c]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x108]
call fcn.0046d490
test eax, eax
je 0x4988a5
lea ecx, [esp + 0x1e4]
call fcn.0046ceb0
lea ecx, [esp + 0x210]
mov byte [esp + 0xf58], 7
call fcn.0046ceb0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x88], cl
lea ecx, [esp + 0x88]
mov byte [esp + 0xf5c], 8
call fcn.00406ad6
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.00406ad6
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.00428170
mov eax, dword [eax + 4]
mov byte [esp + 0xf58], 0xb
cmp eax, ebx
jne 0x4981a2
mov eax, 0x4d68e8
push eax
lea ecx, [esp + 0x88]
push 0x1cc6
push ecx
call fcn.0041c3cf
mov eax, dword [esp + 0x1bc]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0xf58], 0xa
je 0x4981db
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x1b0], ebx
push 1
lea ecx, [esp + 0x1a4]
call fcn.00406ad6
lea edx, [esp + 0x84]
push 1
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1f0]
call fcn.0046d070
test eax, eax
je 0x4982d9
lea eax, [esp + 0x18]
push ebx
push eax
push 0x1bb2
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x24], ebx
call fcn.0046dab0
push ebx
push 0x1bb2
lea ecx, [esp + 0x1ec]
call fcn.0046e640
lea ecx, [esp + 0x158]
push ecx
mov ecx, ebp
call fcn.00428170
mov eax, dword [eax + 4]
mov byte [esp + 0xf58], 0xc
cmp eax, ebx
jne 0x49825c
mov eax, 0x4d68e8
push eax
lea edx, [esp + 0xb8]
push 0x653
push edx
call fcn.0041c3cf
mov eax, dword [esp + 0x174]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0xf58], 0xa
je 0x498295
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x168], ebx
push 1
lea ecx, [esp + 0x15c]
call fcn.00406ad6
push ebx
lea eax, [esp + 0xb8]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x220]
call fcn.0046d490
test eax, eax
je 0x4982d9
mov ecx, dword [esp + 0x18]
push ecx
push 0x1bb2
lea ecx, [esp + 0x218]
call fcn.0046e640
mov eax, dword [esp + 0xc4]
mov byte [esp + 0xf58], 9
cmp eax, ebx
je 0x4982fc
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0xc4], ebx
push 1
lea ecx, [esp + 0xb8]
call fcn.00406ad6
mov eax, dword [esp + 0x94]
mov byte [esp + 0xf58], 8
cmp eax, ebx
je 0x49832d
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x94], ebx
push 1
lea ecx, [esp + 0x88]
call fcn.00406ad6
lea ecx, [esp + 0x210]
mov byte [esp + 0xf58], 7
call fcn.0046cf30
lea ecx, [esp + 0x1e4]
mov byte [esp + 0xf58], 4
call fcn.0046cf30
mov ecx, edi
call fcn.00435aa0
push eax
push 0x14b5
lea ecx, [esp + 0x100]
call fcn.0046e640
mov eax, dword [edi + 0xb8]
lea ecx, [esp + 0xf8]
push eax
push 0x1c4c
call fcn.0046e640
mov ecx, dword [edi + 0x1a0]
cmp ecx, ebx
jne 0x4983a2
xor eax, eax
jmp 0x4983ad
mov eax, dword [edi + 0x1a4]
sub eax, ecx
sar eax, 2
push eax
push 0x1c55
lea ecx, [esp + 0x100]
call fcn.0046e640
push ebp
mov ecx, edi
xor esi, esi
call fcn.00434be0
test eax, eax
je 0x4983d4
mov esi, 1
jmp 0x4983e5
push ebp
mov ecx, edi
call fcn.00434c00
test eax, eax
je 0x4983e5
mov esi, 2
push esi
push 0x49
lea ecx, [esp + 0x100]
call fcn.0046e640
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x10]
push eax
push 0x1c56
lea ecx, [esp + 0x100]
call fcn.0046e640
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.00422c47
mov ecx, eax
call fcn.00409062
push 0x1c86
lea ecx, [esp + 0x118]
call fcn.0046e800
push 1
mov ecx, edi
call fcn.00432ab0
test eax, eax
ja 0x498613
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.ISOArray_class_ISOString_.0
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xf5c], 0xd
mov byte [esp + 0xa0], al
call fcn.00406ad6
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.00428170
mov eax, dword [eax + 4]
mov byte [esp + 0xf58], 0xf
cmp eax, ebx
jne 0x4984c3
mov eax, 0x4d68e8
push eax
lea edx, [esp + 0xa0]
push 0x1bab
push edx
call fcn.0041c3cf
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0xf58], 0xe
je 0x4984fc
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x198], ebx
push 1
lea ecx, [esp + 0x18c]
call fcn.00406ad6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x9c]
push eax
push 1
push ecx
lea ecx, [esp + 0x34]
call fcn.00437c60
lea edx, [esp + 0x24]
lea ecx, [esp + 0xf8]
push edx
push 0xcd
call fcn.0046ec20
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x498544
xor edx, edx
jmp 0x49855b
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.0046e640
push 0x1be8
lea ecx, [esp + 0xfc]
call fcn.0046f4f0
mov eax, dword [esp + 0xac]
mov byte [esp + 0xf58], 0xd
cmp eax, ebx
je 0x4985a1
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0xac], ebx
push 1
lea ecx, [esp + 0xa0]
call fcn.00406ad6
mov dword [esp + 0x24], vtable.ISOArray_class_ISOString_.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.0040b57d
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.00437910
mov eax, dword [esi + 4]
push eax
call fcn.004be17b
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.00428170
mov edx, dword [0x4d7988]
sub esp, 0x10
mov ecx, esp
mov byte [esp + 0xf68], 0x11
mov dword [ecx], edx
mov edx, dword [0x4d798c]
mov dword [ecx + 4], edx
mov edx, dword [0x4d7990]
mov dword [ecx + 8], edx
mov edx, dword [0x4d7994]
mov dword [ecx + 0xc], edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x504194]
push eax
call fcn.00480d70
test eax, eax
mov eax, dword [esp + 0x150]
mov byte [esp + 0xf58], 4
sete byte [esp + 0x13]
cmp eax, ebx
je 0x498691
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x150], ebx
push 1
lea ecx, [esp + 0x144]
call fcn.00406ad6
cmp byte [esp + 0x13], bl
je 0x498897
mov edx, dword [esp + 0x14]
mov ecx, dword [0x504194]
push edx
call fcn.00481070
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x3c], al
call fcn.00406ad6
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [0x5041d4]
mov byte [esp + 0xf58], 0x12
cmp eax, ebx
jne 0x49871f
push str.m_hInstance___0
lea ecx, [esp + 0x744]
push str.ASSERT__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x740]
mov ecx, 0x503ff0
push edx
push 0x558
push str..isoutils.h
call fcn.00423080
mov ecx, dword [0x5041d4]
lea eax, [esp + 0x23c]
push 0x104
push eax
push 0x213e
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
cmp eax, ebx
je 0x49878d
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.00406a51
test al, al
je 0x4987b2
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 0x4987b2
push str..NetCfgInterface.cpp
push 0x2601
push str.csProtocolID.LoadString_IDS_IANS_TRANSPORT_NAME_
lea ecx, [esp + 0xb4c]
push str.__s____d__in___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x4987bf
mov eax, 0x4d68e8
push 0x400
lea edx, [esp + 0x344]
push eax
push edx
call fcn.004c1325
mov edx, dword [0x4d799c]
push ecx
mov ecx, dword [0x4d7998]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x4d79a0]
mov dword [eax + 4], edx
mov edx, dword [0x4d79a4]
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 [0x504194]
call fcn.00480cc0
test eax, eax
jne 0x498834
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x504194]
push edx
push eax
call fcn.004812f0
mov ecx, dword [0x504194]
call fcn.004817c0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x498842
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x48]
mov byte [esp + 0xf58], 4
cmp eax, ebx
je 0x49885f
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x498884
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49887b
cmp al, 0xff
je 0x49887b
dec al
mov byte [ecx], al
jmp 0x498884
push ecx
call fcn.004be17b
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 0x4988a5
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0xf58], 3
call fcn.0046cf30
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov ebp, eax
jmp 0x497eec
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x4988de
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x498903
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4988fa
cmp al, 0xff
je 0x4988fa
dec al
mov byte [ecx], al
jmp 0x498903
push ecx
call fcn.004be17b
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 0x498924
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x498949
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x498940
cmp al, 0xff
je 0x498940
dec al
mov byte [ecx], al
jmp 0x498949
push ecx
call fcn.004be17b
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.0046cf30
lea ecx, [esp + 0xcc]
mov dword [esp + 0xf58], 0xffffffff
call fcn.0046cf30
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