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

Disassembly:
push 0xffffffffffffffff
push 0x496080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov al, byte [esp + 0x5c]
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x50], al
call fcn.00401bc0
mov cl, byte [esp + 0x6c]
push esi
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], esi
call fcn.00401bc0
mov eax, dword [ebp + 0x16c]
mov ecx, dword [ebp + 0x170]
mov ebx, dword [ebp + 0x124]
push esi
push esi
push eax
lea edx, [ebp + 0x360]
push ecx
push edx
mov byte [esp + 0x78], 1
mov dword [esp + 0x4c], ebx
call dword [0x4974d4]
cmp ebx, esi
je 0x462354
mov eax, dword [ebp + 0x170]
mov ecx, dword [ebp + 0x16c]
mov dword [ebp + 0x114], eax
mov dword [ebp + 0x118], ecx
mov dword [ebp + 0x10c], esi
mov dword [ebp + 0x110], esi
lea esi, [ebp + 0x5cc]
mov dword [ebp + 0x35c], 1
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
push ecx
push eax
push eax
call fcn.00467390
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push edi
call fcn.0040de60
mov dword [esi + 8], edi
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x14], esi
jle 0x462b3c
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0x124]
lea ebx, [ebp + 0x11c]
cmp eax, esi
jb 0x4623bf
mov eax, dword [ebx + 4]
test eax, eax
je 0x4623bf
mov ecx, ebx
call fcn.0040d440
mov ecx, dword [ebx + 4]
mov eax, esi
add eax, ecx
jmp 0x4623c4
mov eax, 0x497534
mov dl, byte [eax]
mov eax, dword [ebx + 8]
lea edi, [esi + 1]
mov byte [esp + 0x10], dl
cmp eax, edi
jb 0x4623e7
mov eax, dword [ebx + 4]
test eax, eax
je 0x4623e7
mov ecx, ebx
call fcn.0040d440
add edi, dword [ebx + 4]
jmp 0x4623ec
mov edi, 0x497534
mov al, byte [edi]
mov edi, 0x536018
mov byte [esp + 0x11], al
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x16], 0
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x54]
call fcn.00402210
test al, al
je 0x462445
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x50]
mov ecx, eax
mov esi, 0x536018
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
call fcn.00401ba0
mov esi, dword [esp + 0x14]
mov edi, 0x536018
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x44]
call fcn.00402210
test al, al
je 0x462493
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov ecx, eax
mov esi, 0x536018
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call fcn.00401ba0
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x10], 0xff
jne 0x4627c9
cmp byte [esp + 0x11], 0xff
jne 0x4627c9
mov eax, dword [ebx + 8]
add esi, 2
cmp eax, esi
jb 0x4624c8
mov eax, dword [ebx + 4]
test eax, eax
je 0x4624c8
mov ecx, ebx
call fcn.0040d440
mov eax, dword [ebx + 4]
add eax, esi
jmp 0x4624cd
mov eax, 0x497534
movsx eax, byte [eax]
inc esi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x462561
lea edi, [esi + 1]
mov dword [esp + 0x14], eax
cmp dword [ebx + 8], esi
jb 0x4624fe
mov eax, dword [ebx + 4]
test eax, eax
je 0x4624fe
mov ecx, ebx
call fcn.0040d440
mov eax, dword [ebx + 4]
add eax, esi
jmp 0x462503
mov eax, 0x497534
mov al, byte [eax]
mov byte [esp + 0x24], al
mov ecx, dword [esp + 0x24]
push ecx
push 1
lea ecx, [esp + 0x54]
call fcn.0044a3a0
cmp dword [ebx + 8], edi
jb 0x462535
mov eax, dword [ebx + 4]
test eax, eax
je 0x462535
mov ecx, ebx
call fcn.0040d440
mov ecx, dword [ebx + 4]
mov eax, edi
add eax, ecx
jmp 0x46253a
mov eax, 0x497534
mov dl, byte [eax]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x28], dl
mov eax, dword [esp + 0x28]
push eax
push 1
call fcn.0044a3a0
mov eax, dword [esp + 0x14]
add esi, 2
add edi, 2
dec eax
mov dword [esp + 0x14], eax
jne 0x4624e4
cmp dword [ebx + 8], esi
jb 0x46257b
mov eax, dword [ebx + 4]
test eax, eax
je 0x46257b
mov ecx, ebx
call fcn.0040d440
mov eax, dword [ebx + 4]
add eax, esi
jmp 0x462580
mov eax, 0x497534
movsx edi, byte [eax]
inc esi
mov dword [esp + 0x1c], edi
test edi, edi
mov dword [esp + 0x14], esi
jle 0x46262b
mov ecx, dword [esp + 0x1c]
lea edi, [esi + 1]
mov dword [esp + 0x14], ecx
cmp dword [ebx + 8], esi
jb 0x4625bb
mov eax, dword [ebx + 4]
test eax, eax
je 0x4625bb
mov ecx, ebx
call fcn.0040d440
mov ecx, dword [ebx + 4]
mov eax, esi
add eax, ecx
jmp 0x4625c0
mov eax, 0x497534
mov dl, byte [eax]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], dl
mov eax, dword [esp + 0x2c]
push eax
push 1
call fcn.0044a3a0
cmp dword [ebx + 8], edi
jb 0x4625f0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4625f0
mov ecx, ebx
call fcn.0040d440
mov eax, dword [ebx + 4]
add eax, edi
jmp 0x4625f5
mov eax, 0x497534
mov cl, byte [eax]
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x30]
push edx
push 1
call fcn.0044a3a0
mov eax, dword [esp + 0x14]
add esi, 2
add edi, 2
dec eax
mov dword [esp + 0x14], eax
jne 0x46259f
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
mov ebx, 1
jmp 0x462630
mov ebx, 1
mov ecx, dword [ebp + 0x2d0]
mov edx, dword [ebp + 0x48]
mov eax, ecx
add eax, edx
imul eax, edi
cdq
idiv dword [esp + 0x34]
lea edx, [edi + 1]
imul edx, ecx
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [ebp + 0x358]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x114]
add edx, eax
mov eax, dword [ebp + 0x174]
add edx, ecx
mov dword [ebp + 0x358], ebx
cmp edx, eax
jl 0x4626d8
mov eax, dword [ebp + 0x10c]
mov ecx, dword [ebp + 0x34]
cmp eax, ecx
jge 0x46268b
mov ecx, ebp
call fcn.00462130
jmp 0x4626d8
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x2d0]
push ecx
push edx
mov ecx, ebp
call fcn.004604e0
mov eax, dword [ebp + 0x170]
mov dword [ebp + 0x114], eax
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x4626d8
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov dword [ebp + 0x13c], ebx
mov dword [ebp + 0x140], ebx
je 0x4626d8
mov dword [ebp + 0x37c], eax
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x4c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0040c4c0
push edi
push esi
mov ecx, ebp
call fcn.00460040
lea ebx, [edi + edi]
xor esi, esi
test ebx, ebx
jle 0x4627ba
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
cmp eax, esi
jb 0x462728
test ecx, ecx
je 0x462728
lea ecx, [esp + 0x3c]
call fcn.0040d440
mov ecx, dword [esp + 0x40]
lea eax, [ecx + esi]
jmp 0x46272d
mov eax, 0x497534
mov al, byte [eax]
lea edi, [esi + 1]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x44]
cmp eax, edi
jb 0x462754
test ecx, ecx
je 0x462754
lea ecx, [esp + 0x3c]
call fcn.0040d440
mov ecx, dword [esp + 0x40]
lea eax, [ecx + edi]
jmp 0x462759
mov eax, 0x497534
mov dl, byte [eax]
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x10]
mov byte [esp + 0x11], dl
mov edx, dword [esp + 0x6c]
push 0
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0045f330
mov eax, dword [ebp + 0x2d0]
mov ecx, dword [ebp + 0x48]
mov edi, dword [ebp + 0x114]
add eax, ecx
add edi, eax
or ecx, 0xffffffff
mov dword [ebp + 0x114], edi
lea edi, [esp + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x5dc]
call fcn.0040c5e0
add esi, 2
cmp esi, ebx
jl 0x462706
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x358], edx
jmp 0x462b2a
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x5dc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, esi
call fcn.0040c5e0
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x10]
add ecx, 2
cmp al, 0xfe
mov dword [esp + 0x14], ecx
je 0x462a17
cmp byte [esp + 0x11], 0xfe
je 0x462a17
cmp dword [ebp + 0x168], 1
jne 0x46282a
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x2d0]
push ecx
push edx
mov ecx, ebp
call fcn.004604e0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0045f330
mov ecx, dword [ebp + 0x2d0]
mov edx, dword [ebp + 0x114]
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x18], 0
shl eax, 1
lea edi, [edx + ecx*2]
mov dword [esp + 0x20], eax
add edi, eax
mov eax, dword [ebp + 0x174]
cmp edi, eax
jl 0x462a05
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x170]
add ecx, edx
mov edx, dword [ebp + 0x118]
mov dword [ebp + 0x114], eax
mov eax, dword [ebp + 0x178]
add ecx, edx
cmp ecx, eax
jge 0x462b6b
mov eax, dword [ebp + 0x10c]
mov edx, dword [ebp + 0x34]
cmp eax, edx
jge 0x462c0b
mov edi, dword [ebp + 0x110]
inc eax
inc edi
mov dword [ebp + 0x118], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x10c], eax
mov dword [ebp + 0x110], edi
mov eax, dword [ebx + 8]
cmp eax, ecx
jb 0x462908
mov edi, dword [ebx + 4]
test edi, edi
je 0x462908
mov dl, byte [edi - 1]
test dl, dl
je 0x4628f6
cmp dl, 0xff
je 0x4628f6
push 0
push eax
mov ecx, ebx
call fcn.00402210
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 4]
test eax, eax
je 0x462901
mov byte [eax - 1], 0xff
mov eax, dword [ebx + 4]
add eax, ecx
jmp 0x46290d
mov eax, 0x497534
mov al, byte [eax]
lea edi, [ecx + 1]
mov ecx, dword [ebx + 8]
mov byte [esp + 0x10], al
cmp ecx, edi
jb 0x46294b
mov eax, dword [ebx + 4]
test eax, eax
je 0x46294b
mov al, byte [eax - 1]
test al, al
je 0x462939
cmp al, 0xff
je 0x462939
push 0
push ecx
mov ecx, ebx
call fcn.00402210
mov eax, dword [ebx + 4]
test eax, eax
je 0x462944
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
add ebx, edi
jmp 0x462950
mov ebx, 0x497534
mov cl, byte [ebx]
mov edx, dword [ebp + 0x5d4]
mov byte [esp + 0x11], cl
lea ecx, [ebp + 0x5cc]
push esi
push 1
push edx
mov byte [esp + 0x1e], 0
call fcn.00401d50
mov edi, dword [esi + 4]
mov ebx, dword [ebp + 0x5e4]
test edi, edi
mov dword [esp + 0x34], edi
je 0x4629ac
mov al, byte [edi - 1]
test al, al
je 0x4629ac
cmp al, 0xff
je 0x4629ac
push 1
mov ecx, esi
call fcn.00401bc0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x34]
not ecx
dec ecx
push ecx
push eax
mov ecx, esi
call fcn.0040e930
mov eax, dword [esi + 8]
cmp eax, ebx
jae 0x4629b5
mov ebx, eax
test ebx, ebx
jbe 0x4629e9
mov ecx, dword [esi + 4]
sub eax, ebx
push eax
lea edx, [ebx + ecx]
push edx
push ecx
call fcn.0046a230
mov edi, dword [esi + 8]
add esp, 0xc
sub edi, ebx
mov ecx, esi
push 0
push edi
call fcn.00402210
test al, al
je 0x4629e9
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov byte [edi + eax], 0
cmp byte [esp + 0x10], 0xfe
je 0x4629fb
cmp byte [esp + 0x11], 0xfe
jne 0x462b2a
add dword [esp + 0x14], 2
jmp 0x462b2a
mov eax, dword [ebp + 0x48]
add eax, edx
add eax, ecx
mov dword [ebp + 0x114], eax
jmp 0x462b2a
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x462b2a
mov ecx, dword [ebp + 0x170]
mov edx, dword [ebp + 0x2d4]
mov ebx, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x118]
mov eax, dword [ebp + 0x110]
mov dword [ebp + 0x114], ecx
mov ecx, dword [ebp + 0x10c]
add edx, ebx
add edi, edx
inc ecx
mov dword [ebp + 0x10c], ecx
inc eax
lea ecx, [ebp + 0x5cc]
mov dword [ebp + 0x118], edi
mov dword [ebp + 0x110], eax
push esi
mov eax, dword [ecx + 8]
push 1
push eax
call fcn.00401d50
mov eax, dword [esi + 4]
mov ebx, dword [ebp + 0x5e4]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x462ab4
mov al, byte [eax - 1]
test al, al
je 0x462ab4
cmp al, 0xff
je 0x462ab4
push 1
mov ecx, esi
call fcn.00401bc0
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
dec ecx
push ecx
push eax
mov ecx, esi
call fcn.0040e930
mov eax, dword [esi + 8]
cmp eax, ebx
jae 0x462abd
mov ebx, eax
test ebx, ebx
jbe 0x462aef
mov ecx, dword [esi + 4]
sub eax, ebx
push eax
lea edx, [ecx + ebx]
push edx
push ecx
call fcn.0046a230
mov edi, dword [esi + 8]
add esp, 0xc
sub edi, ebx
mov ecx, esi
push 0
push edi
call fcn.00402210
test al, al
je 0x462aef
push edi
mov ecx, esi
call fcn.00401ba0
mov ecx, dword [ebp + 0x10c]
mov eax, dword [ebp + 0x34]
mov esi, 1
cmp ecx, eax
mov dword [esp + 0x18], esi
jg 0x462cca
mov edx, dword [ebp + 0x118]
mov esi, dword [ebp + 0x2d4]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x178]
add edx, esi
add edx, ecx
cmp edx, eax
jge 0x462cf9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jl 0x462394
xor esi, esi
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x35c], esi
cmp ecx, esi
je 0x462d89
mov al, byte [ecx - 1]
test al, al
je 0x462d7f
cmp al, 0xff
je 0x462d7f
dec al
mov byte [ecx - 1], al
jmp 0x462d89
mov eax, dword [ebp + 0x168]
mov esi, 1
cmp eax, esi
jne 0x462b8f
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x2d0]
push ecx
push edx
mov ecx, ebp
call fcn.004604e0
mov ecx, ebp
call fcn.004603c0
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x462bc2
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov dword [ebp + 0x13c], esi
mov dword [ebp + 0x140], esi
je 0x462bc2
mov dword [ebp + 0x37c], eax
push esi
lea ecx, [esp + 0x40]
mov dword [ebp + 0x35c], 0
mov byte [esp + 0x68], 0
call fcn.00401bc0
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x462c04
mov al, byte [ecx - 1]
test al, al
je 0x462bfa
cmp al, 0xff
je 0x462bfa
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x462dbe
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov eax, esi
jmp 0x462dbe
mov eax, dword [ebp + 0x168]
mov edi, 1
cmp eax, edi
jne 0x462c2f
mov eax, dword [ebp + 0x2d4]
mov ecx, dword [ebp + 0x2d0]
push eax
push ecx
mov ecx, ebp
call fcn.004604e0
mov ecx, ebp
call fcn.004603c0
mov eax, dword [ebp + 0x10c]
xor esi, esi
cmp eax, esi
je 0x462c64
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov dword [ebp + 0x13c], edi
mov dword [ebp + 0x140], edi
je 0x462c64
mov dword [ebp + 0x37c], eax
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x35c], esi
cmp ecx, esi
je 0x462c8e
mov al, byte [ecx - 1]
test al, al
je 0x462c84
cmp al, 0xff
je 0x462c84
dec al
mov byte [ecx - 1], al
jmp 0x462c8e
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x40], esi
cmp ecx, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x462cc3
mov al, byte [ecx - 1]
test al, al
je 0x462cb9
cmp al, 0xff
je 0x462cb9
dec al
mov byte [ecx - 1], al
mov eax, edi
jmp 0x462dbe
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov eax, edi
jmp 0x462dbe
mov ecx, ebp
call fcn.004603c0
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x462d50
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov dword [ebp + 0x13c], esi
mov dword [ebp + 0x140], esi
je 0x462d50
jmp 0x462d4a
mov eax, dword [ebp + 0x168]
mov esi, 1
cmp eax, esi
jne 0x462d1d
mov edx, dword [ebp + 0x2d4]
mov eax, dword [ebp + 0x2d0]
push edx
push eax
mov ecx, ebp
call fcn.004604e0
mov ecx, ebp
call fcn.004603c0
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x462d50
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov dword [ebp + 0x13c], esi
mov dword [ebp + 0x140], esi
je 0x462d50
mov dword [ebp + 0x37c], eax
push esi
lea ecx, [esp + 0x40]
mov dword [ebp + 0x35c], 0
mov byte [esp + 0x68], 0
call fcn.00401bc0
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0xffffffff
call fcn.00401bc0
mov eax, esi
jmp 0x462dbe
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x40], esi
cmp ecx, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x462db9
mov al, byte [ecx - 1]
test al, al
je 0x462daf
cmp al, 0xff
je 0x462daf
dec al
mov byte [ecx - 1], al
jmp 0x462db9
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 8