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

Disassembly:
push 0xffffffffffffffff
push 0x49dfa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x90], ecx
xor ebx, ebx
lea ecx, [esp + 0x28]
push ebx
mov dword [esp + 0x120], ebx
call fcn.0046eb50
mov al, byte [esp + 0x13]
mov dword [esp + 0x78], ebx
mov byte [esp + 0x74], al
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x98], cl
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], 2
call fcn.00401bb0
mov edi, 0x4b63f0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4b63f0
lea ecx, [esp + 0x9c]
call fcn.00418330
mov dl, byte [esp + 0x13]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x14], dl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov al, byte [esp + 0x13]
mov dword [esp + 0x64], ebx
mov byte [esp + 0x60], al
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x50], ebx
mov byte [esp + 0x4c], cl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dl, byte [esp + 0x13]
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x38], dl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push ebx
lea ecx, [esp + 0x60]
mov byte [esp + 0x120], 7
call fcn.0046eb50
lea ecx, [esp + 0xb4]
mov byte [esp + 0x11c], 8
call fcn.0046f9e0
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], 9
call fcn.0046eb50
mov dword [esp + 0x84], 0x4a0164
mov word [esp + 0x88], 0xffff
mov word [esp + 0x8a], bx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x11c], 0xb
push eax
push ecx
lea ecx, [esp + 0x7c]
call fcn.00426520
movsx eax, word [esp + 0x134]
mov ebp, dword [esp + 0x138]
lea edx, [esp + 0x14]
shl eax, 4
mov ecx, dword [ebp + 4]
mov dword [esp + 0x70], eax
lea esi, [ecx + eax]
cmp edx, esi
je 0x46acef
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x46abe4
xor edi, edi
jmp 0x46abec
mov edi, dword [esi + 8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x14]
call fcn.0040a860
cmp edi, eax
ja 0x46ac34
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.0040b060
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ab00
mov ecx, esi
call fcn.0040a860
mov edx, dword [esp + 0x18]
lea eax, [edx + eax*4]
mov dword [esp + 0x1c], eax
jmp 0x46acf3
mov ecx, esi
call fcn.0040a860
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040aae0
cmp edi, eax
ja 0x46ac92
mov edi, dword [esi + 4]
lea ecx, [esp + 0x14]
call fcn.0040a860
mov ecx, dword [esp + 0x18]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call fcn.0040b060
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x14]
push edx
push eax
push edi
call fcn.00401c00
mov ecx, esi
call fcn.0040a860
mov ecx, dword [esp + 0x18]
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
jmp 0x46acf3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ab00
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048d500
add esp, 4
mov ecx, esi
call fcn.0040a860
cmp eax, ebx
jge 0x46acbf
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0048db76
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00401c00
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jmp 0x46acf3
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 4]
cmp edx, ebx
jne 0x46ad00
mov dword [esp + 0x48], ebx
jmp 0x46ad0c
mov ecx, dword [ebp + 8]
sub ecx, edx
sar ecx, 4
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x46ad18
xor eax, eax
jmp 0x46ad1d
sub eax, ecx
sar eax, 2
movsx eax, ax
mov dword [esp + 0x2c], eax
dec eax
cmp eax, ebx
mov dword [esp + 0x34], eax
jbe 0x46ae77
mov eax, dword [esp + 0x34]
xor esi, esi
test eax, eax
mov byte [esp + 0x13], 0
jbe 0x46ae77
push esi
lea ecx, [esp + 0x18]
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x2c]
call fcn.0046ee50
push 2
lea ecx, [esp + 0x2c]
call fcn.0046ee40
movzx di, al
push 3
lea ecx, [esp + 0x2c]
shl edi, 8
call fcn.0046ee40
movzx ax, al
lea ebx, [esi + 1]
lea ecx, [esp + 0x14]
push ebx
add edi, eax
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x2c]
call fcn.0046ee50
push 2
lea ecx, [esp + 0x2c]
call fcn.0046ee40
movzx bp, al
push 3
lea ecx, [esp + 0x2c]
shl ebp, 8
call fcn.0046ee40
xor cx, cx
mov cl, al
add ebp, ecx
cmp di, bp
jbe 0x46ae52
push esi
lea ecx, [esp + 0x18]
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x2c]
call fcn.0046ee50
push ebx
lea ecx, [esp + 0x18]
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 0xb
call fcn.00401ba0
mov ecx, eax
call fcn.0046ee50
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0046eb30
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 0xb
call fcn.00401ba0
mov ecx, eax
call fcn.0046ee50
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x34]
mov esi, ebx
cmp esi, eax
jb 0x46ad44
mov al, byte [esp + 0x13]
test al, al
je 0x46ae77
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x46ad31
mov al, byte [esp + 0x124]
sub esp, 0x10
mov esi, esp
xor ebx, ebx
mov dword [esp + 0x34], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00401bb0
mov ecx, dword [0x4a0148]
lea edx, [esp + 0x134]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.0040a8e0
mov ecx, dword [0x4b6448]
call fcn.0047e890
mov ebp, dword [esp + 0x2c]
xor edi, edi
cmp ebp, ebx
jbe 0x46afde
mov bl, 0xf
push edi
lea ecx, [esp + 0x18]
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x2c]
call fcn.0046ee50
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
sub esp, 0x10
lea edx, [esp + 0x27]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
push str.MENUTXT.DB
mov byte [esp + 0x138], 0xe
call fcn.00401aa0
mov ecx, dword [0x4b63ec]
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x134], 0xb
call fcn.00414c40
test ax, ax
je 0x46afd3
push 0
lea ecx, [esp + 0x50]
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0xa8]
push ecx
mov ecx, dword [0x4b63ec]
call fcn.004154b0
mov edx, dword [0x4a0148]
lea ecx, [esp + 0x94]
push edx
push 0
push eax
mov byte [esp + 0x128], bl
call fcn.0040a8e0
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x120], 0xb
call fcn.00401bb0
mov al, byte [esp + 0x94]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401bb0
mov ecx, dword [0x4a0148]
lea edx, [esp + 0xa4]
push ecx
push 0
push edx
mov ecx, esi
call fcn.0040a8e0
mov ecx, dword [0x4b6448]
call fcn.0047ea50
inc edi
cmp edi, ebp
jb 0x46aec5
xor ebx, ebx
mov ecx, dword [0x4b6448]
lea eax, [esp + 0x84]
push eax
call fcn.0047ec70
cmp ax, bx
jge 0x46b189
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], 0x4a0164
mov byte [esp + 0x11c], 9
call fcn.0046ec60
lea ecx, [esp + 0xb4]
mov byte [esp + 0x11c], 8
call fcn.0046fb60
lea ecx, [esp + 0x5c]
mov byte [esp + 0x11c], 7
call fcn.0046ec60
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, eax
mov byte [esp + 0x11c], 6
mov edi, eax
je 0x46b064
push ebx
mov ecx, esi
call fcn.004185e0
add esi, 0x10
cmp esi, edi
jne 0x46b051
mov esi, dword [esp + 0x3c]
push esi
call fcn.0048d500
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
add esp, 4
cmp esi, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x11c], 5
je 0x46b0a0
push ebx
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x46b08d
mov esi, dword [esp + 0x50]
push esi
call fcn.0048d500
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
add esp, 4
cmp esi, edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x11c], 4
je 0x46b0dc
push ebx
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x46b0c9
mov esi, dword [esp + 0x64]
push esi
call fcn.0048d500
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x11c], 3
je 0x46b118
push ebx
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x46b105
mov esi, dword [esp + 0x18]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push 1
mov dword [esp + 0x24], ebx
mov byte [esp + 0x120], 2
call fcn.00401bb0
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
cmp esi, eax
mov byte [esp + 0x11c], 1
mov edi, eax
je 0x46b16c
push ebx
mov ecx, esi
call fcn.0040b370
add esi, 0x10
cmp esi, edi
jne 0x46b159
mov esi, dword [esp + 0x78]
push esi
call fcn.0048d500
add esp, 4
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
jmp 0x46bd01
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x4ae254
call fcn.0046ebc0
push ecx
mov byte [esp + 0x12c], 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x4af0b4
call fcn.0046ebc0
mov ecx, 0x4b6448
mov byte [esp + 0x12c], 0xb
call fcn.00472d90
movsx ecx, word [esp + 0x88]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x60]
call fcn.0046ee50
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00413d30
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
push ecx
push 1
push edx
lea ecx, [esp + 0x20]
call fcn.00401c40
mov ebp, dword [esp + 0x138]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov eax, dword [ebp + 4]
lea esi, [eax + ecx]
cmp esi, edx
je 0x46b32b
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x46b244
xor edi, edi
jmp 0x46b24d
mov edi, dword [esp + 0x1c]
sub edi, eax
sar edi, 2
mov ecx, esi
call fcn.0040a860
cmp edi, eax
ja 0x46b291
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.0040b060
mov ecx, dword [esi + 8]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.0040ab00
lea ecx, [esp + 0x14]
call fcn.0040a860
mov edx, dword [esi + 4]
lea eax, [edx + eax*4]
mov dword [esi + 8], eax
jmp 0x46b32b
mov ecx, esi
call fcn.0040aae0
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040a860
cmp eax, edi
ja 0x46b2da
mov edi, dword [esp + 0x18]
mov ecx, esi
call fcn.0040a860
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
lea edi, [edi + eax*4]
push ecx
push edi
push edx
call fcn.0040b060
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push eax
push ecx
push edi
mov ecx, esi
call fcn.00401c00
jmp 0x46b27a
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.0040ab00
mov eax, dword [esi + 4]
push eax
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0040a860
cmp eax, ebx
jge 0x46b304
xor eax, eax
shl eax, 2
push eax
call fcn.0048db76
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00401c00
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00426120
movsx esi, word [esp + 0x48]
cmp esi, ebx
jbe 0x46b370
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00413d30
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00425f70
dec esi
jne 0x46b347
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00413d30
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push ebx
mov ecx, esi
mov byte [esi], dl
call fcn.00401bb0
mov edi, str.VINFO.DB
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.VINFO.DB
mov ecx, esi
call fcn.00418330
mov ecx, dword [0x4b63ec]
lea eax, [esp + 0xc4]
push eax
call fcn.00415020
cmp ax, bx
jne 0x46b59a
lea ecx, [esp + 0xb4]
call fcn.0046fec0
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], 0x4a0164
mov byte [esp + 0x11c], 9
call fcn.0046ec60
lea ecx, [esp + 0xb4]
mov byte [esp + 0x11c], 8
call fcn.0046fb60
lea ecx, [esp + 0x5c]
mov byte [esp + 0x11c], 7
call fcn.0046ec60
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, eax
mov byte [esp + 0x11c], 6
mov edi, eax
je 0x46b448
push ebx
mov ecx, esi
call fcn.004185e0
add esi, 0x10
cmp esi, edi
jne 0x46b435
mov esi, dword [esp + 0x3c]
push esi
call fcn.0048d500
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
add esp, 4
cmp esi, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x11c], 5
je 0x46b484
push ebx
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x46b471
mov esi, dword [esp + 0x50]
push esi
call fcn.0048d500
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
add esp, 4
cmp esi, edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x11c], 4
je 0x46b4c0
push ebx
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x46b4ad
mov esi, dword [esp + 0x64]
push esi
call fcn.0048d500
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x11c], 3
je 0x46b4fc
push ebx
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x46b4e9
mov esi, dword [esp + 0x18]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push 1
mov dword [esp + 0x24], ebx
mov byte [esp + 0x120], 2
call fcn.00401bb0
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
cmp esi, eax
mov byte [esp + 0x11c], 1
mov edi, eax
je 0x46b550
push ebx
mov ecx, esi
call fcn.0040b370
add esi, 0x10
cmp esi, edi
jne 0x46b53d
mov esi, dword [esp + 0x78]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0x11c], 0
call fcn.0046ec60
push 1
lea ecx, [esp + 0x128]
mov dword [esp + 0x120], 0xffffffff
call fcn.00401bb0
xor ax, ax
jmp 0x46bd2f
mov ecx, dword [esp + 0x13c]
xor edx, edx
mov dword [esp + 0x34], edx
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x46b9ea
mov esi, dword [ecx + 8]
sub esi, eax
sar esi, 2
cmp edx, esi
jae 0x46b9ea
push edx
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x2c]
call fcn.0046ee50
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0046eb30
lea eax, [esp + 0x50]
lea ecx, [esp + 0xb8]
push eax
push ecx
sub esp, 0x10
lea edx, [esp + 0xab]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
push str.VINFO.DB
mov byte [esp + 0x140], 0x11
call fcn.00401aa0
mov ecx, dword [0x4b63ec]
mov byte [esp + 0x138], 0xb
call fcn.00415100
cmp ax, bx
je 0x46b9ea
movsx edi, word [esp + 0x48]
xor esi, esi
cmp edi, ebx
jbe 0x46b6c2
lea eax, [esi + 4]
lea ecx, [esp + 0x4c]
push eax
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x34]
call fcn.0046ee50
mov ecx, dword [esp + 0x134]
push ecx
push esi
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
push ebp
call fcn.00425ee0
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
mov byte [esp + 0x13c], 0x12
call fcn.0046eb30
mov ecx, dword [esp + 0xac]
mov byte [esp + 0x138], 0xb
call fcn.0046a6f0
cmp ax, bx
je 0x46b9d3
inc esi
cmp esi, edi
jb 0x46b649
cmp edi, ebx
mov dword [esp + 0x2c], ebx
jbe 0x46b9b9
xor ebp, ebp
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
add eax, 4
push eax
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x34]
call fcn.0046ee50
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0046eb30
mov ecx, dword [0x4b63ec]
call fcn.00416cf0
cmp ax, bx
je 0x46b9b9
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
lea esi, [eax + ebp]
cmp ecx, esi
je 0x46b83f
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x46b73a
xor edi, edi
jmp 0x46b742
mov edi, dword [esi + 8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x14]
call fcn.0040a860
cmp edi, eax
ja 0x46b78a
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.0040b060
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ab00
mov ecx, esi
call fcn.0040a860
mov edx, dword [esp + 0x18]
lea eax, [edx + eax*4]
mov dword [esp + 0x1c], eax
jmp 0x46b83f
mov ecx, esi
call fcn.0040a860
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040aae0
cmp edi, eax
ja 0x46b7e8
mov edi, dword [esi + 4]
lea ecx, [esp + 0x14]
call fcn.0040a860
mov ecx, dword [esp + 0x18]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call fcn.0040b060
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x14]
push edx
push eax
push edi
call fcn.00401c00
mov ecx, esi
call fcn.0040a860
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax*4]
mov dword [esp + 0x1c], edx
jmp 0x46b83f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040ab00
mov edx, dword [esp + 0x18]
push edx
call fcn.0048d500
add esp, 4
mov ecx, esi
call fcn.0040a860
cmp eax, ebx
jge 0x46b815
xor eax, eax
shl eax, 2
push eax
call fcn.0048db76
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00401c00
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0046eb30
sub esp, 0x10
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x84], esp
push eax
mov byte [esp + 0x134], 0x13
call fcn.0040a7f0
mov ecx, dword [0x4b63ec]
mov byte [esp + 0x130], 0xb
call fcn.004169c0
cmp ax, bx
jge 0x46b9a0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00426200
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
lea esi, [eax + ebp]
cmp esi, ecx
je 0x46b9a0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x46b8bc
xor edi, edi
jmp 0x46b8c5
mov edi, dword [esp + 0x1c]
sub edi, eax
sar edi, 2
mov ecx, esi
call fcn.0040a860
cmp edi, eax
ja 0x46b8f4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call fcn.0040b060
mov edx, dword [esi + 8]
add esp, 0xc
mov ecx, esi
push edx
push eax
call fcn.0040ab00
jmp 0x46b93b
mov ecx, esi
call fcn.0040aae0
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040a860
cmp eax, edi
ja 0x46b94f
mov edi, dword [esp + 0x18]
mov ecx, esi
call fcn.0040a860
mov ecx, dword [esp + 0x18]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push eax
push edi
push ecx
call fcn.0040b060
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
push edx
push eax
push edi
call fcn.00401c00
lea ecx, [esp + 0x14]
call fcn.0040a860
mov ecx, dword [esi + 4]
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x46b9a0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040ab00
mov edx, dword [esi + 4]
push edx
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0040a860
cmp eax, ebx
jge 0x46b979
xor eax, eax
shl eax, 2
push eax
call fcn.0048db76
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00401c00
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
add ebp, 0x10
movsx ecx, word [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jb 0x46b6d0
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00426200
mov ebp, dword [esp + 0x138]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x13c]
inc eax
mov dword [esp + 0x34], eax
mov edx, eax
jmp 0x46b5a7
lea ecx, [esp + 0xb4]
call fcn.0046fec0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x1b], 0
call fcn.00426120
movsx eax, word [esp + 0x48]
cmp eax, ebx
jbe 0x46bb7d
movsx eax, word [esp + 0x48]
xor ebp, ebp
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
lea esi, [edx + ebp]
cmp eax, esi
je 0x46bb3b
mov ecx, esi
call fcn.0040a860
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040a860
cmp edi, eax
ja 0x46ba86
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.0040b060
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ab00
mov ecx, esi
call fcn.0040a860
mov edx, dword [esp + 0x18]
lea eax, [edx + eax*4]
mov dword [esp + 0x1c], eax
jmp 0x46bb3b
mov ecx, esi
call fcn.0040a860
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040aae0
cmp edi, eax
ja 0x46bae4
mov edi, dword [esi + 4]
lea ecx, [esp + 0x14]
call fcn.0040a860
mov ecx, dword [esp + 0x18]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call fcn.0040b060
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x14]
push edx
push eax
push edi
call fcn.00401c00
mov ecx, esi
call fcn.0040a860
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax*4]
mov dword [esp + 0x1c], edx
jmp 0x46bb3b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040ab00
mov edx, dword [esp + 0x18]
push edx
call fcn.0048d500
add esp, 4
mov ecx, esi
call fcn.0040a860
cmp eax, ebx
jge 0x46bb11
xor eax, eax
shl eax, 2
push eax
call fcn.0048db76
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00401c00
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00425f70
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46bb66
mov ecx, dword [esp + 0x1c]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 4
je 0x46bb6b
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x2c]
add ebp, 0x10
dec eax
mov dword [esp + 0x2c], eax
jne 0x46ba22
mov edi, dword [esp + 0x13c]
lea edx, [esp + 0x60]
push edx
mov ecx, edi
call fcn.00413ab0
mov al, byte [0x4b65fd]
cmp al, 0x40
je 0x46bb9d
cmp al, 0x50
jne 0x46bbc4
mov al, byte [esp + 0x13]
test al, al
jne 0x46bbc4
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call fcn.00413d30
mov ecx, dword [esp + 0x64]
mov eax, dword [edi + 8]
push ecx
push eax
mov ecx, edi
call fcn.00426200
mov dl, byte [edi]
sub esp, 0x10
mov esi, esp
mov ecx, edi
mov dword [esp + 0x34], esp
mov byte [esi], dl
call fcn.0040a860
cmp eax, ebx
jge 0x46bbde
xor eax, eax
shl eax, 2
push eax
call fcn.0048db76
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00401c00
mov ecx, dword [esp + 0xa0]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0046a4e0
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], 0x4a0164
mov byte [esp + 0x11c], 9
call fcn.0046ec60
lea ecx, [esp + 0xb4]
mov byte [esp + 0x11c], 8
call fcn.0046fb60
lea ecx, [esp + 0x5c]
mov byte [esp + 0x11c], 7
call fcn.0046ec60
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x124], 6
call fcn.004182c0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0048d500
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push ecx
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x124], 5
call fcn.0040ab00
mov eax, dword [esp + 0x50]
push eax
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x11c], 4
call fcn.00401b60
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 3
call fcn.00401b60
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], 2
call fcn.00401bb0
lea ecx, [esp + 0x74]
mov byte [esp + 0x11c], 1
call fcn.0040a880
lea ecx, [esp + 0x28]
mov byte [esp + 0x11c], 0
call fcn.0046ec60
push 1
lea ecx, [esp + 0x128]
mov dword [esp + 0x120], 0xffffffff
call fcn.00401bb0
mov ax, 1
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x110
ret 0x1c