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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
setne al
movzx ecx, byte [eax + esi + 0x19]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + eax*4 + 0x1c]
mov dword [esp + 0x34], ecx
cmp ecx, edi
je 0x4702bf
cmp eax, edi
jne 0x4702bf
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
push ecx
push esi
push eax
push edx
lea eax, [esp + 0x38]
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], edi
call fcn.0046d650
add esp, 0x10
test eax, eax
jne 0x470267
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x14], edi
jle 0x46ff23
mov eax, 3
mov dword [esp + 0x68], 0x508020
mov dword [esp + 0x6c], eax
mov dword [esp + 0x58], 0x50801c
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46f769
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx*4]
jmp 0x46f76f
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x24]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x46f784
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x1c]
movsx ecx, word [ecx + edx*2]
jmp 0x46f78b
mov ecx, dword [ebp + 0xc]
movsx ecx, word [ecx + 0x20]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edx*8]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edx, dword [edx + 4]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [eax + edx]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], edx
test ecx, ecx
jne 0x46f7bf
xor eax, eax
jmp 0x46f7d2
mov eax, ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46f7c4
sub eax, esi
and eax, 0x3fffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], eax
test edx, edx
jne 0x46f7e6
xor edi, edi
mov dword [esp + 0x44], edi
jmp 0x46f804
mov eax, edx
lea edx, [eax + 1]
jmp 0x46f7f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46f7f0
sub eax, edx
and eax, 0x3fffffff
mov edi, eax
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x10]
xor eax, eax
lea ecx, [edi + 0x31]
push eax
push ecx
mov dword [esp + 0x78], ecx
call fcn.00426a60
mov ebx, eax
add esp, 8
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x46f879
mov eax, dword [esp + 0x70]
push eax
push 0
push ebx
call fcn.004d6340
or ecx, 0xffffffff
lea eax, [edi + 1]
add esp, 0xc
mov byte [ebx], 0x1b
mov word [ebx + 0x22], cx
test eax, eax
jne 0x46f852
or dword [ebx + 4], 0x400
mov dword [ebx + 8], eax
jmp 0x46f872
lea eax, [ebx + 0x30]
mov dword [ebx + 8], eax
test edi, edi
je 0x46f86b
mov edx, dword [esp + 0x60]
push edi
push edx
push eax
call fcn.004d5420
add esp, 0xc
mov eax, dword [ebx + 8]
mov byte [edi + eax], 0
mov dword [ebx + 0x18], 1
mov edi, dword [esp + 0x24]
xor ecx, ecx
inc edi
lea eax, [edi + 0x30]
push ecx
push eax
call fcn.00426a60
mov ebx, eax
add esp, 8
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x46f8eb
lea eax, [edi + 0x30]
push eax
push 0
push ebx
call fcn.004d6340
or ecx, 0xffffffff
add esp, 0xc
mov byte [ebx], 0x1b
mov word [ebx + 0x22], cx
test edi, edi
jne 0x46f8c0
or dword [ebx + 4], 0x400
mov dword [ebx + 8], edi
jmp 0x46f8e4
mov edi, dword [esp + 0x24]
lea eax, [ebx + 0x30]
mov dword [ebx + 8], eax
test edi, edi
je 0x46f8dd
mov edx, dword [esp + 0x50]
push edi
push edx
push eax
call fcn.004d5420
add esp, 0xc
mov eax, dword [ebx + 8]
mov byte [edi + eax], 0
mov dword [ebx + 0x18], 1
push 0
push 0x34
call fcn.00426a60
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46f93b
push 0x34
push 0
push ebx
call fcn.004d6340
mov byte [ebx], 0x1b
lea eax, [ebx + 0x30]
mov dword [ebx + 8], eax
add esp, 0xc
or ecx, 0xffffffff
mov word [ebx + 0x22], cx
mov dx, word [0x508020]
mov word [eax], dx
mov cl, byte [0x508022]
mov byte [eax + 2], cl
mov edx, dword [ebx + 8]
mov byte [edx + 3], 0
mov dword [ebx + 0x18], 1
mov eax, dword [ebp + 8]
mov esi, dword [eax]
push 0
push 0x30
call fcn.00426a60
mov edi, eax
add esp, 8
test edi, edi
je 0x46f970
push 0x30
push 0
push edi
call fcn.004d6340
add esp, 0xc
or ecx, 0xffffffff
mov byte [edi], 0x7a
mov word [edi + 0x22], cx
mov dword [edi + 0x18], 1
mov edx, dword [ebp + 8]
mov esi, dword [edx]
test edi, edi
jne 0x46f993
push ebx
push esi
call fcn.00458ac0
mov eax, dword [esp + 0x44]
push eax
push esi
call fcn.00458ac0
mov ebx, dword [ebp + 8]
add esp, 0x10
jmp 0x46f9e0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46f9aa
mov dword [edi + 0x10], eax
mov ecx, dword [eax + 4]
and ecx, 0x200100
or dword [edi + 4], ecx
test ebx, ebx
je 0x46f9bd
mov dword [edi + 0xc], ebx
mov edx, dword [ebx + 4]
and edx, 0x200100
or dword [edi + 4], edx
mov esi, edi
call fcn.00458360
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x64]
cmp dword [edi + 0x18], eax
jle 0x46f9e0
push eax
push 0x508314
push ebx
call fcn.00429330
add esp, 0xc
mov esi, dword [ebx]
push 0
push 0x30
call fcn.00426a60
mov esi, eax
add esp, 8
test esi, esi
je 0x46fa12
push 0x30
push 0
push esi
call fcn.004d6340
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x4f
mov word [esi + 0x22], cx
mov dword [esi + 0x18], 1
mov edx, dword [ebx]
mov dword [esp + 0x3c], edx
test esi, esi
jne 0x46fa39
mov eax, edx
push edi
push eax
call fcn.00458ac0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.00458ac0
add esp, 0x10
jmp 0x46fa80
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46fa4f
mov dword [esi + 0x10], eax
mov eax, dword [eax + 4]
and eax, 0x200100
or dword [esi + 4], eax
test edi, edi
je 0x46fa62
mov dword [esi + 0xc], edi
mov ecx, dword [edi + 4]
and ecx, 0x200100
or dword [esi + 4], ecx
call fcn.00458360
mov edx, dword [ebx]
mov eax, dword [edx + 0x64]
cmp dword [esi + 0x18], eax
jle 0x46fa80
push eax
push 0x508314
push ebx
call fcn.00429330
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
mov eax, esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00458710
add esp, 4
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], eax
je 0x46fcf6
push 0
push 0x1b
push esi
lea eax, [esp + 0x5c]
call fcn.00458430
add esp, 0xc
push 0
mov edi, eax
push 0x1b
push esi
lea eax, [esp + 0x64]
call fcn.00458430
mov esi, dword [ebx]
add esp, 0xc
push 0
push 0x30
mov dword [esp + 0x48], eax
call fcn.00426a60
mov esi, eax
add esp, 8
mov dword [esp + 0x24], esi
test esi, esi
je 0x46fb01
push 0x30
push 0
push esi
call fcn.004d6340
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x7a
mov word [esi + 0x22], cx
mov dword [esi + 0x18], 1
mov edx, dword [ebx]
mov dword [esp + 0x3c], edx
test esi, esi
jne 0x46fb24
mov eax, dword [esp + 0x40]
push eax
mov esi, edx
push esi
call fcn.00458ac0
push edi
push esi
call fcn.00458ac0
add esp, 0x10
jmp 0x46fb6c
test edi, edi
je 0x46fb37
mov dword [esi + 0x10], edi
mov ecx, dword [edi + 4]
and ecx, 0x200100
or dword [esi + 4], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46fb4e
mov dword [esi + 0xc], eax
mov edx, dword [eax + 4]
and edx, 0x200100
or dword [esi + 4], edx
call fcn.00458360
mov eax, dword [ebx]
mov eax, dword [eax + 0x64]
cmp dword [esi + 0x18], eax
jle 0x46fb6c
push eax
push 0x508314
push ebx
call fcn.00429330
add esp, 0xc
mov esi, dword [esp + 0x10]
push 0
push 0x1b
push esi
lea eax, [esp + 0x5c]
call fcn.00458430
add esp, 0xc
push 0
mov dword [esp + 0x44], eax
push 0x1b
push esi
lea eax, [esp + 0x74]
call fcn.00458430
mov esi, dword [ebx]
add esp, 0xc
push 0
push 0x30
mov dword [esp + 0x44], eax
call fcn.00426a60
mov edi, eax
add esp, 8
test edi, edi
je 0x46fbcc
push 0x30
push 0
push edi
call fcn.004d6340
add esp, 0xc
or ecx, 0xffffffff
mov byte [edi], 0x7a
mov word [edi + 0x22], cx
mov dword [edi + 0x18], 1
mov esi, dword [ebx]
test edi, edi
jne 0x46fbed
mov edx, dword [esp + 0x3c]
push edx
push esi
call fcn.00458ac0
mov eax, dword [esp + 0x48]
push eax
push esi
call fcn.00458ac0
add esp, 0x10
jmp 0x46fc3b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46fc04
mov dword [edi + 0x10], eax
mov ecx, dword [eax + 4]
and ecx, 0x200100
or dword [edi + 4], ecx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46fc1b
mov dword [edi + 0xc], eax
mov edx, dword [eax + 4]
and edx, 0x200100
or dword [edi + 4], edx
mov esi, edi
call fcn.00458360
mov eax, dword [ebx]
mov eax, dword [eax + 0x64]
cmp dword [edi + 0x18], eax
jle 0x46fc3b
push eax
push 0x508314
push ebx
call fcn.00429330
add esp, 0xc
mov esi, dword [ebx]
push 0
push 0x30
call fcn.00426a60
mov esi, eax
add esp, 8
test esi, esi
je 0x46fc6d
push 0x30
push 0
push esi
call fcn.004d6340
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x49
mov word [esi + 0x22], cx
mov dword [esi + 0x18], 1
mov edx, dword [ebx]
mov dword [esp + 0x40], edx
test esi, esi
jne 0x46fc94
mov eax, edx
push edi
push eax
call fcn.00458ac0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
push ecx
push edx
call fcn.00458ac0
add esp, 0x10
jmp 0x46fcdb
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46fcaa
mov dword [esi + 0x10], eax
mov eax, dword [eax + 4]
and eax, 0x200100
or dword [esi + 4], eax
test edi, edi
je 0x46fcbd
mov dword [esi + 0xc], edi
mov ecx, dword [edi + 4]
and ecx, 0x200100
or dword [esi + 4], ecx
call fcn.00458360
mov edx, dword [ebx]
mov eax, dword [edx + 0x64]
cmp dword [esi + 0x18], eax
jle 0x46fcdb
push eax
push 0x508314
push ebx
call fcn.00429330
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
mov eax, esi
call fcn.00458710
mov esi, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
cmp eax, 6
je 0x46ff0e
cmp eax, 9
jne 0x46fdd2
cmp dword [ebp + 0x14], 0
je 0x46ff0e
push 0
push 0x1b
push esi
lea eax, [esp + 0x5c]
call fcn.00458430
add esp, 0xc
push 0
mov edi, eax
push 0x1b
push esi
lea eax, [esp + 0x64]
call fcn.00458430
mov esi, dword [ebx]
add esp, 0xc
push 0
push 0x30
mov dword [esp + 0x44], eax
call fcn.00426a60
mov esi, eax
add esp, 8
test esi, esi
je 0x46fd70
push 0x30
push 0
push esi
call fcn.004d6340
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x7a
mov word [esi + 0x22], cx
mov dword [esi + 0x18], 1
mov edx, dword [ebx]
mov dword [esp + 0x40], edx
test esi, esi
jne 0x46fd9a
mov eax, dword [esp + 0x3c]
push eax
mov ecx, edx
push ecx
call fcn.00458ac0
mov edx, dword [esp + 0x48]
push edi
push edx
call fcn.00458ac0
add esp, 0x10
jmp 0x46fea1
test edi, edi
je 0x46fdac
mov dword [esi + 0x10], edi
mov eax, dword [edi + 4]
and eax, 0x200100
or dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46fdc3
mov dword [esi + 0xc], eax
mov ecx, dword [eax + 4]
and ecx, 0x200100
or dword [esi + 4], ecx
call fcn.00458360
mov edx, dword [ebx]
mov eax, dword [edx + 0x64]
jmp 0x46fe8d
push 0
cmp eax, 8
jne 0x46fe38
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x4c]
mov eax, dword [edx + eax + 4]
test eax, eax
je 0x46fe00
push 0
push eax
push esi
call fcn.00458c00
add esp, 0x10
mov esi, eax
jmp 0x46fea1
mov esi, dword [ebx]
push 0x30
call fcn.00426a60
mov esi, eax
add esp, 8
test esi, esi
je 0x46fe30
push 0x30
push 0
push esi
call fcn.004d6340
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x65
mov word [esi + 0x22], cx
mov dword [esi + 0x18], 1
mov edi, dword [ebx]
test esi, esi
jne 0x46fdc3
jmp 0x46fe6e
mov esi, dword [ebx]
push 0x30
call fcn.00426a60
mov esi, eax
add esp, 8
test esi, esi
je 0x46fe68
push 0x30
push 0
push esi
call fcn.004d6340
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x65
mov word [esi + 0x22], ax
mov dword [esi + 0x18], 1
mov edi, dword [ebx]
test esi, esi
jne 0x46fe83
push 0
push edi
call fcn.00458ac0
push 0
push edi
call fcn.00458ac0
add esp, 0x10
jmp 0x46fea1
call fcn.00458360
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x64]
cmp dword [esi + 0x18], eax
jle 0x46fea1
push eax
push 0x508314
push ebx
call fcn.00429330
add esp, 0xc
mov ecx, dword [esp + 0x20]
push esi
mov eax, ebx
call fcn.00459630
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x46ff0e
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [ebx]
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*8 - 0x18]
xor eax, eax
mov dword [esp + 0x48], ecx
cmp dword [esp + 0x60], eax
jne 0x46fed6
xor esi, esi
jmp 0x46ff07
mov edi, dword [esp + 0x44]
mov edx, edi
add edx, 1
adc eax, 0
push eax
push edx
mov esi, ebx
call fcn.00426a60
mov esi, eax
add esp, 8
test esi, esi
je 0x46ff07
mov eax, dword [esp + 0x60]
push edi
push eax
push esi
call fcn.004d5420
add esp, 0xc
mov byte [edi + esi], 0
mov ecx, dword [esp + 0x48]
mov dword [ecx + 4], esi
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [edx + 0x14]
jl 0x46f758
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x46ff74
test ebx, ebx
je 0x46ff6b
cmp dword [ebx + 0x208], 0
je 0x46ff45
mov ecx, ebx
call fcn.004267a0
jmp 0x46ff74
cmp eax, dword [ebx + 0x114]
jb 0x46ff6b
cmp eax, dword [ebx + 0x118]
jae 0x46ff6b
mov ecx, dword [ebx + 0x110]
mov dword [eax], ecx
dec dword [ebx + 0xfc]
mov dword [ebx + 0x110], eax
jmp 0x46ff74
push eax
call fcn.00426730
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov edx, dword [eax]
mov dword [esp + 0x48], edx
test edx, edx
jne 0x46ff87
xor eax, eax
jmp 0x46ff9e
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ff90
sub eax, esi
and eax, 0x3fffffff
cmp dword [esp + 0x34], 6
mov dword [esp + 0x1c], eax
jne 0x4700c5
push 0
push 0x4e
mov esi, ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
call fcn.00426a60
mov edi, eax
add esp, 8
test edi, edi
je 0x470008
push 0x4e
push 0
push edi
call fcn.004d6340
add esp, 0xc
push 0x1d
lea eax, [edi + 0x30]
or ecx, 0xffffffff
push 0x507b58
push eax
mov byte [edi], 0x39
mov word [edi + 0x22], cx
mov dword [edi + 8], eax
call fcn.004d5420
mov edx, dword [edi + 8]
mov byte [edx + 0x1d], 0
add esp, 0xc
mov dword [edi + 0x18], 1
mov byte [edi + 1], 2
push 0
push 0x58
mov esi, ebx
call fcn.00426a60
mov esi, eax
add esp, 8
test esi, esi
je 0x470053
push 0x58
push 0
push esi
call fcn.004d6340
add esp, 0xc
mov dword [esi + 4], 1
mov eax, dword [esi]
push eax
push 1
push ebx
mov eax, esi
call fcn.00467040
add esp, 0xc
cmp byte [ebx + 0x41], 0
mov esi, eax
je 0x470057
push esi
mov eax, ebx
call fcn.00467270
add esp, 4
xor esi, esi
jmp 0x47008c
mov eax, dword [esi]
lea ecx, [eax + eax*4]
add ecx, ecx
lea edx, [esi + ecx*8 - 0x48]
push ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x48], edx
call fcn.00462aa0
mov ecx, dword [esp + 0x48]
add esp, 4
mov dword [ecx + 8], eax
push ebx
xor ecx, ecx
call fcn.00462aa0
mov edx, dword [esp + 0x48]
add esp, 4
mov dword [edx + 4], eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
mov esi, dword [ebp + 8]
push edi
xor ecx, ecx
mov eax, esi
call fcn.00459630
add esp, 4
push eax
mov ecx, esi
call fcn.00479d20
add esp, 0x24
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], 0
mov cl, byte [ebx + 0xfa]
mov byte [esp + 0xf], cl
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0x49
push eax
push ecx
mov esi, ebx
mov byte [ebx + 0xfa], 0
call fcn.00426a60
mov edi, eax
add esp, 8
test edi, edi
je 0x470104
mov eax, dword [esp + 0x1c]
add eax, 0x49
push eax
push 0
push edi
call fcn.004d6340
add esp, 0xc
mov dword [esp + 0x40], edi
test edi, edi
je 0x47021b
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
lea esi, [edi + 0x24]
push edx
lea eax, [esi + 0x24]
push ecx
mov dword [edi + 0x1c], esi
push eax
mov dword [esp + 0x38], esi
mov dword [esi + 0xc], eax
call fcn.004d5420
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0
push 1
push edx
push ebx
call fcn.00458c00
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
push 1
push eax
push ebx
call fcn.00458f80
mov ecx, dword [esp + 0x4c]
add esp, 0x1c
push 1
push ecx
push ebx
mov dword [esi + 0x14], eax
call fcn.004594f0
add esp, 0xc
cmp dword [esp + 0x14], 0
mov dword [esi + 8], eax
je 0x47021f
mov edx, dword [ebp + 8]
mov esi, dword [edx]
push 0
push 0x30
call fcn.00426a60
mov esi, eax
add esp, 8
test esi, esi
je 0x4701ab
push 0x30
push 0
push esi
call fcn.004d6340
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x13
mov word [esi + 0x22], ax
mov dword [esi + 0x18], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], edx
test esi, esi
jne 0x4701d5
push eax
mov ecx, edx
push ecx
call fcn.00458ac0
mov edx, dword [esp + 0x4c]
push esi
push edx
call fcn.00458ac0
add esp, 0x10
jmp 0x470206
mov dword [esi + 0xc], eax
mov eax, dword [eax + 4]
and eax, 0x200100
or dword [esi + 4], eax
call fcn.00458360
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
cmp dword [esi + 0x18], eax
jle 0x470206
push eax
mov eax, ecx
push 0x508314
push eax
call fcn.00429330
add esp, 0xc
push 0
push 1
push esi
push ebx
mov dword [esp + 0x24], esi
call fcn.00458c00
add esp, 0x10
mov dword [edi + 0xc], eax
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0xf]
push edx
push ebx
mov byte [ebx + 0xfa], cl
call fcn.00458ac0
mov eax, dword [esp + 0x1c]
push eax
push ebx
call fcn.00458ac0
mov ecx, dword [esp + 0x30]
push ecx
push ebx
call fcn.00459850
mov edx, dword [esp + 0x48]
push 1
push edx
push ebx
call fcn.00479bf0
add esp, 0x24
cmp byte [ebx + 0x41], 1
jne 0x470270
mov esi, ebx
call fcn.0046eb20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
cmp eax, 6
je 0x47028e
cmp eax, 9
jne 0x470289
cmp dword [ebp + 0x14], 0
jne 0x470289
mov byte [esi], 0x6d
jmp 0x470291
mov byte [esi], 0x6e
jmp 0x470291
mov byte [esi], 0x77
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
mov dword [esi + 4], edi
mov ecx, dword [eax + 0x40]
mov dword [edi + 0x14], ecx
mov edx, dword [eax + 0x40]
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x18], edx
setne dl
mov dword [ecx + eax*4 + 0x1c], edi
mov eax, dword [esp + 0x40]
add dl, 0x6d
mov byte [edi + 8], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret