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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, edx
sub esp, 0x17c
mov ebx, dword [edx + 0x3c]
mov dword [ebp - 0x170], eax
mov byte [edx + 0x44], 1
test ebx, ebx
je 0x4988fd
lea eax, [ebx*4 - 4]
mov dword [ebp - 0x15c], eax
mov eax, dword [esi + 0x38]
mov edi, dword [ebp - 0x15c]
sub ebx, 1
mov edi, dword [eax + edi]
test edi, edi
je 0x4988ee
mov eax, dword [edi + 0x58]
test eax, eax
je 0x498876
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x498885
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x498894
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4988a3
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4988b2
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4988c1
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4988d0
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [edi]
test eax, eax
je 0x4988de
mov dword [esp], eax
call fcn.006febd0
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], edi
call fcn.006fec10
sub dword [ebp - 0x15c], 4
test ebx, ebx
jne 0x498850
lea ecx, [ebp - 0x118]
lea edi, [ebp - 0x10c]
mov dword [esi + 0x3c], 0
call fcn.00473f00
mov ecx, edi
call fcn.00473f00
lea ecx, [ebp - 0x100]
call fcn.00473f00
lea ecx, [ebp - 0xf4]
call fcn.00473f00
lea ecx, [ebp - 0xe8]
call fcn.00473f00
lea ecx, [ebp - 0xdc]
call fcn.00473f00
lea ecx, [ebp - 0xcc]
mov byte [ebp - 0xd0], 0
call fcn.00473f00
lea ecx, [ebp - 0xc0]
call fcn.00473f00
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
call fcn.006fec40
mov ebx, eax
lea eax, [ebp - 0x118]
mov ecx, ebx
mov dword [esp], eax
call fcn.00474110
sub esp, 4
lea ecx, [ebx + 0xc]
mov dword [esp], edi
call fcn.00474110
lea eax, [ebp - 0x100]
sub esp, 4
lea ecx, [ebx + 0x18]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0xf4]
sub esp, 4
lea ecx, [ebx + 0x24]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0xe8]
sub esp, 4
lea ecx, [ebx + 0x30]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0xdc]
sub esp, 4
lea ecx, [ebx + 0x3c]
mov dword [esp], eax
call fcn.00474110
movzx eax, byte [ebp - 0xd0]
sub esp, 4
lea ecx, [ebx + 0x4c]
mov byte [ebx + 0x48], al
lea eax, [ebp - 0xcc]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0xc0]
sub esp, 4
lea ecx, [ebx + 0x58]
mov dword [esp], eax
call fcn.00474110
mov eax, dword [ebp - 0xb4]
sub esp, 4
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0xac]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x40]
lea edx, [eax + 1]
je 0x498d40
mov edi, dword [esi + 0x38]
mov dword [edi + eax*4], ebx
mov eax, dword [ebp - 0x170]
mov dword [esi + 0x3c], edx
mov eax, dword [eax]
cmp byte [eax + 0x1cc], 0
mov dword [ebp - 0x15c], eax
jne 0x498dc3
cmp byte [eax + 0x154], 0
je 0x498b09
mov eax, dword [eax + 0x15c]
lea ecx, [esi + 0xd4]
mov eax, dword [eax]
mov edx, dword [eax + 4]
test edx, edx
je 0x498d30
mov dword [esp], eax
call fcn.00474280
sub esp, 4
mov eax, dword [ebp - 0x170]
mov eax, dword [eax]
mov dword [ebp - 0x15c], eax
movzx eax, byte [eax + 0x21c]
test al, al
mov byte [esi + 0xa4], al
jne 0x499353
mov eax, dword [ebp - 0x15c]
cmp byte [eax + 0x1e0], 0
je 0x498c90
mov eax, dword [eax + 0x1ec]
test eax, eax
je 0x498c90
xor ebx, ebx
jmp 0x498b77
mov edx, dword [esi + 0x108]
mov ecx, dword [ebp - 0x164]
mov dword [edx + eax*8 + 4], edi
add ebx, 1
mov dword [edx + eax*8], ecx
mov eax, dword [ebp - 0x160]
mov dword [esi + 0x10c], eax
mov eax, dword [ebp - 0x15c]
cmp dword [eax + 0x1ec], ebx
jbe 0x498c90
lea eax, [ebx*4]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x15c]
mov eax, dword [eax + 0x1e8]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004a6270
test al, al
je 0x49948f
mov eax, dword [ebp - 0x98]
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0x164], eax
or eax, edi
je 0x49948f
mov eax, dword [esi + 0x10c]
cmp eax, dword [esi + 0x110]
lea edx, [eax + 1]
mov dword [ebp - 0x160], edx
jne 0x498b43
shr eax, 2
add eax, edx
cmp eax, 0xfffffff
mov dword [ebp - 0x160], eax
ja 0x499511
shl eax, 3
mov dword [esp], eax
call fcn.006fec20
mov edx, eax
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x108]
test eax, eax
jne 0x498c40
test ecx, ecx
jne 0x498c6b
mov ecx, dword [ebp - 0x160]
mov dword [esi + 0x108], edx
mov dword [esi + 0x110], ecx
lea ecx, [eax + 1]
mov dword [ebp - 0x160], ecx
jmp 0x498b49
shl eax, 3
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x16c]
mov dword [esp], ecx
mov dword [ebp - 0x168], edx
call fcn.006febd0
mov eax, dword [esi + 0x10c]
mov edx, dword [ebp - 0x168]
jmp 0x498c1b
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x498ca2
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x498cb4
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x498cc6
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0xe8]
test eax, eax
je 0x498cd8
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x498cea
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x498cfc
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x498d0e
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x498d20
mov dword [esp], eax
call fcn.006febd0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
call fcn.004bb070
jmp 0x498afb
shr eax, 2
add eax, edx
cmp eax, 0x1fffffff
mov dword [ebp - 0x15c], eax
ja 0x4997df
shl eax, 2
mov dword [esp], eax
call fcn.006fec20
mov edi, eax
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
test eax, eax
jne 0x498d85
test edx, edx
jne 0x498da4
mov edx, dword [ebp - 0x15c]
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edx
lea edx, [eax + 1]
jmp 0x498aad
shl eax, 2
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [ebp - 0x160], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x160]
mov dword [esp], edx
call fcn.006febd0
mov edx, dword [ebp - 0x15c]
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edx
lea edx, [eax + 1]
jmp 0x498aad
mov ecx, dword [eax + 0x1d8]
test ecx, ecx
je 0x498ace
mov dword [ebp - 0x164], 0
jmp 0x498e0b
cmp byte [esi + 0x44], 0
jne 0x498f90
mov eax, dword [ebp - 0x15c]
add dword [ebp - 0x164], 1
mov edi, dword [ebp - 0x164]
mov eax, dword [eax + 0x1d8]
cmp eax, edi
jbe 0x498f68
mov eax, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x164]
mov eax, dword [eax + 0x1d4]
mov eax, dword [eax + ebx*4]
mov dword [esp + 4], 0x746520
mov dword [ebp - 0x168], eax
mov eax, dword [eax]
mov dword [esp], eax
call reloc.KERNEL32.dll_InitializeCriticalSection
test al, al
jne 0x498de0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call fcn.00473f00
mov eax, dword [ebp - 0x168]
mov edx, dword [eax + 4]
test edx, edx
je 0x499057
mov dword [ebp - 0x16c], esi
mov ecx, dword [eax]
xor ebx, ebx
mov esi, eax
jmp 0x498ee6
mov ecx, dword [esi]
movzx edx, word [ecx + edi + 2]
lea edi, [edx - 0x30]
cmp di, 3
ja 0x498f44
sub edx, 0x30
cmp edx, dword [eax*4 + 0x746988]
mov dword [ebp + eax*4 - 0x134], edx
je 0x498f44
add ebx, 2
cmp dword [ebp - 0x160], ebx
jbe 0x499051
movzx ecx, word [ecx + ebx*2]
mov dword [esp], str.pqrxyzw
lea edi, [ebx + ebx]
lea edx, [ecx - 0x41]
lea eax, [ecx + 0x20]
cmp dx, 0x1a
cmovae eax, ecx
mov word [ebp - 0x160], ax
movsx eax, byte [ebp - 0x160]
mov dword [esp + 4], eax
call fcn.004718a0
cmp word [ebp - 0x160], 0x7f
ja 0x4990d1
test eax, eax
js 0x4990d1
mov edx, dword [esi + 4]
mov ecx, edx
mov dword [ebp - 0x160], edx
lea edx, [ebx + 1]
cmp edx, ecx
jb 0x498eb0
mov esi, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x498f5c
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x15c]
mov eax, dword [eax + 0x1d8]
cmp dword [ebp - 0x164], eax
jne 0x49974c
mov eax, dword [ebp - 0x170]
mov eax, dword [eax]
mov dword [ebp - 0x15c], eax
jmp 0x498ace
mov eax, dword [esi + 0x38]
mov byte [esi + 0x44], 0
mov ebx, dword [eax]
test ebx, ebx
je 0x49902b
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x498fb0
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x498fbf
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x498fce
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x498fdd
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x498fec
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x498ffb
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x49900a
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx]
test eax, eax
je 0x499018
mov dword [esp], eax
call fcn.006febd0
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], ebx
call fcn.006fec10
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov dword [esp], eax
lea edx, [edx*4 - 4]
mov dword [esp + 8], edx
lea edx, [eax + 4]
mov dword [esp + 4], edx
call sub.msvcrt.dll_memmove
sub dword [esi + 0x3c], 1
jmp 0x498dea
mov esi, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x14c]
xor edi, edi
mov dword [ebp - 0x148], 0
mov word [eax], di
cmp byte [esi + 0x44], 0
je 0x4990b6
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x134]
mov eax, dword [eax]
mov dword [eax + 0x64], edx
mov edx, dword [ebp - 0x130]
mov dword [eax + 0x68], edx
mov edx, dword [ebp - 0x12c]
mov dword [eax + 0x6c], edx
mov edx, dword [ebp - 0x128]
mov dword [eax + 0x70], edx
mov edx, dword [ebp - 0x124]
mov dword [eax + 0x74], edx
mov edx, dword [ebp - 0x120]
mov dword [eax + 0x78], edx
mov edx, dword [ebp - 0x11c]
mov dword [eax + 0x7c], edx
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x498dea
mov dword [esp], eax
call fcn.006febd0
jmp 0x498dea
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x14c]
mov esi, dword [ebp - 0x16c]
add edi, dword [eax]
mov dword [esp], edi
call fcn.004741d0
mov eax, dword [ebp - 0x148]
sub esp, 4
test eax, eax
je 0x49906c
mov eax, dword [ebp - 0x14c]
cmp word [eax], 0x21
jne 0x498f50
lea ecx, [ebp - 0x98]
call fcn.00473f00
lea ecx, [ebp - 0x8c]
call fcn.00473f00
lea ecx, [ebp - 0x80]
call fcn.00473f00
lea ecx, [ebp - 0x74]
call fcn.00473f00
lea ecx, [ebp - 0x68]
call fcn.00473f00
lea ecx, [ebp - 0x5c]
call fcn.00473f00
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x50], 0
call fcn.00473f00
lea ecx, [ebp - 0x40]
call fcn.00473f00
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x140]
add eax, 2
mov dword [esp], eax
call fcn.00473fd0
mov ebx, dword [ebp - 0x13c]
sub esp, 4
test ebx, ebx
je 0x4993f6
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x98]
mov dword [esp], eax
call fcn.00474280
mov eax, dword [ebp - 0x134]
sub esp, 4
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1c], eax
call fcn.006fec40
mov ebx, eax
lea eax, [ebp - 0x98]
mov ecx, ebx
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0x8c]
sub esp, 4
lea ecx, [ebx + 0xc]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0x80]
sub esp, 4
lea ecx, [ebx + 0x18]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0x74]
sub esp, 4
lea ecx, [ebx + 0x24]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0x68]
sub esp, 4
lea ecx, [ebx + 0x30]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0x5c]
sub esp, 4
lea ecx, [ebx + 0x3c]
mov dword [esp], eax
call fcn.00474110
movzx eax, byte [ebp - 0x50]
sub esp, 4
lea ecx, [ebx + 0x4c]
mov byte [ebx + 0x48], al
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00474110
lea eax, [ebp - 0x40]
sub esp, 4
lea ecx, [ebx + 0x58]
mov dword [esp], eax
call fcn.00474110
mov eax, dword [ebp - 0x34]
sub esp, 4
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x40]
lea edx, [eax + 1]
je 0x499385
mov edi, dword [esi + 0x38]
mov dword [edi + eax*4], ebx
mov eax, dword [ebp - 0x140]
mov dword [esi + 0x3c], edx
test eax, eax
je 0x4992cc
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4992db
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4992ea
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4992f9
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x499308
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x499317
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x499326
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x499338
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4990b6
mov dword [esp], eax
call fcn.006febd0
jmp 0x4990b6
mov eax, dword [ebp - 0x15c]
lea ecx, [esi + 0xa8]
mov eax, dword [eax + 0x224]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00474280
mov eax, dword [ebp - 0x170]
sub esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x15c], eax
jmp 0x498b1e
shr eax, 2
add eax, edx
cmp eax, 0x1fffffff
mov dword [ebp - 0x160], eax
ja 0x49982f
shl eax, 2
mov dword [esp], eax
call fcn.006fec20
mov edi, eax
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
test eax, eax
jne 0x4993ca
test edx, edx
jne 0x4993e9
mov edx, dword [ebp - 0x160]
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edx
lea edx, [eax + 1]
jmp 0x4992b4
shl eax, 2
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [ebp - 0x168], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x168]
mov dword [esp], edx
call fcn.006febd0
mov eax, dword [esi + 0x3c]
jmp 0x4993b6
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x499408
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x499417
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x499426
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x499435
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x499444
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x499453
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x499462
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x499474
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x498f4a
mov dword [esp], eax
call fcn.006febd0
jmp 0x498f4a
mov dword [esp], 0xc
call fcn.006fed60
mov edi, eax
mov eax, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x160]
mov ecx, edi
mov eax, dword [eax + 0x1e8]
mov eax, dword [eax + esi]
mov ebx, dword [eax]
call fcn.00473f00
mov dword [esp], str.Incorrect_volume_size:
mov ecx, edi
call fcn.00474870
sub esp, 4
test ebx, ebx
je 0x4994e4
mov ecx, edi
call fcn.00474600
mov dword [esp], ebx
mov ecx, edi
call fcn.004746a0
sub esp, 4
mov dword [esp + 8], 0x60c540
mov dword [esp + 4], 0x763a9c
mov dword [esp], edi
call fcn.006ff3c0
mov ebx, eax
lea ecx, [ebp - 0x118]
call fcn.0060c560
mov dword [esp], ebx
call fcn.005e6130
call fcn.006ff430
mov esi, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x499527
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x499536
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x499545
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x499554
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebx]
test eax, eax
je 0x499562
mov dword [esp], eax
call fcn.006febd0
mov dword [esp], ebx
mov dword [esp + 4], pe_nt_image_headers32
mov ebx, esi
call fcn.006fec10
jmp 0x4994fe
mov eax, dword [ebp - 0xe8]
test eax, eax
je 0x49958a
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x49959c
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x4995ae
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x4995c0
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x499509
mov dword [esp], eax
call fcn.006febd0
jmp 0x499509
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x499518
mov dword [esp], eax
call fcn.006febd0
jmp 0x499518
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x4994fe
mov dword [esp], eax
call fcn.006febd0
jmp 0x4994fe
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x49973c
mov dword [esp], eax
call fcn.006febd0
lea ecx, [ebp - 0x98]
call fcn.0060c560
jmp 0x49966e
mov dword [esp], 0xc
call fcn.006fed60
mov esi, eax
mov eax, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x164]
mov ecx, esi
mov eax, dword [eax + 0x1d4]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov dword [esp], str.incorrect_update_switch_command
mov dword [esp + 4], eax
call fcn.004987c0
push ecx
push ecx
mov dword [esp + 8], 0x60c540
mov dword [esp + 4], 0x763a9c
mov dword [esp], esi
call fcn.006ff3c0
mov ebx, eax
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x4997b1
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x499578
mov dword [esp], eax
call fcn.006febd0
jmp 0x499578
call fcn.006ff430
mov esi, eax
jmp 0x4995f0
call fcn.006ff430
mov ebx, eax
jmp 0x49972a