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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009a85d
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 0x64]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x78], eax
call fcn.10007fc0
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov eax, dword [edi + 0x60]
test eax, eax
mov dword [esp + 0x188], 0
mov dword [esp + 0x78], str.DETAIL
mov dword [esp + 0x7c], str.ALBUM
mov dword [esp + 0x80], str.DOWNPIC
mov dword [esp + 0x84], str.DOWNRECOMMEND
mov dword [esp + 0x88], str.START
mov dword [esp + 0x8c], str.PCALBUM
mov dword [esp + 0x90], str.FLASHALBUM
mov dword [esp + 0x94], str.INNERWEB
je 0x10057b72
lea ecx, [esp + 0x1c]
call fcn.1001c110
mov eax, dword [edi + 0x5c]
mov esi, dword [eax]
lea ebx, [edi + 0x58]
mov byte [esp + 0x188], 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
test eax, eax
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
je 0x100578a9
cmp eax, ebx
je 0x100578b2
call fcn.10079637
mov eax, dword [esp + 0x14]
cmp esi, dword [esp + 0x38]
je 0x10057998
test eax, eax
jne 0x100578c9
call fcn.10079637
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 4]
jne 0x100578d3
call fcn.10079637
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.10012640
add esp, 8
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x188], 2
jb 0x100578f7
mov eax, dword [eax + 4]
jmp 0x100578fa
add eax, 4
push eax
lea ecx, [esp + 0x30]
call fcn.1001c1b0
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 4]
mov byte [esp + 0x188], 3
jne 0x1005791e
call fcn.10079637
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + eax*4 + 0x78]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x24]
call fcn.1001c680
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov byte [esp + 0x18c], 4
call fcn.1001c980
lea ecx, [esp + 0x50]
mov byte [esp + 0x188], 3
call fcn.1001c970
lea ecx, [esp + 0x2c]
mov byte [esp + 0x188], 2
call fcn.1001c3a0
cmp dword [esp + 0x70], 0x10
mov byte [esp + 0x188], 1
jb 0x10057986
mov edx, dword [esp + 0x5c]
push edx
call fcn.10079508
add esp, 4
lea ecx, [esp + 0x14]
call fcn.1004cbc0
mov esi, dword [esp + 0x18]
jmp 0x10057896
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebx
call fcn.10056910
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
xor esi, esi
mov dword [ebx + 8], esi
mov dword [eax], eax
mov ebx, dword [ebx + 4]
lea ecx, [esp + 0x1c]
mov dword [ebx + 8], ebx
call fcn.1001c5a0
test eax, eax
jbe 0x10057b61
lea ecx, [esp + 0x2c]
call fcn.1001c110
push str.page
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x190], 5
call fcn.1001c680
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
mov byte [esp + 0x18c], 6
call fcn.1001c980
lea ecx, [esp + 0x34]
mov byte [esp + 0x188], 5
call fcn.1001c970
lea ecx, [esp + 0x50]
call fcn.1001fac0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x190], 7
call fcn.1001fbe0
cmp dword [esp + 0x120], 0x10
mov eax, dword [esp + 0x10c]
mov byte [esp + 0x188], 8
jae 0x10057a5d
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x128]
push ecx
call fcn.10012540
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x148]
mov bl, 9
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], esi
push edx
mov byte [esp + 0x1b0], bl
mov word [ecx + 4], si
call fcn.10002490
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push esi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], esi
push 0x100a5f48
mov byte [esp + 0x1c8], 0xa
mov word [ecx + 4], si
call fcn.10004560
push 0xffffffffffffffff
push 0xf
mov ecx, edi
mov byte [esp + 0x1c8], bl
call fcn.10056d00
cmp dword [esp + 0x13c], 8
jb 0x10057af1
mov eax, dword [esp + 0x128]
push eax
call fcn.10079508
add esp, 4
cmp dword [esp + 0x120], 0x10
mov dword [esp + 0x13c], 7
mov dword [esp + 0x138], esi
mov word [esp + 0x128], si
jb 0x10057b25
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.10079508
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], esi
mov byte [esp + 0x10c], 0
mov byte [esp + 0x188], 5
call fcn.1001fb60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x188], 1
call fcn.1001c3a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 0
call fcn.1001c3a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x188], 0xffffffff
call fcn.10007fe0
lea edx, [edi + 0x78]
push edx
lea ecx, [esp + 0x40]
call fcn.10007fc0
cmp dword [edi + 0x74], 0
mov dword [esp + 0x188], 0xb
je 0x10058139
lea ecx, [esp + 0x2c]
call fcn.1001c110
lea ecx, [esp + 0x50]
mov byte [esp + 0x188], 0xc
call fcn.1001c110
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], 0
mov byte [esp + 0x10c], 0
mov eax, dword [edi + 0x70]
mov ebx, dword [eax]
lea esi, [edi + 0x6c]
mov eax, esi
mov byte [esp + 0x188], 0xe
mov dword [esp + 0x14], eax
jmp 0x10057c00
test eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0xe0], ecx
je 0x10057c12
cmp eax, esi
je 0x10057c1b
call fcn.10079637
mov eax, dword [esp + 0x14]
cmp ebx, dword [esp + 0xe0]
je 0x10057f7f
test eax, eax
jne 0x10057c35
call fcn.10079637
mov eax, dword [esp + 0x14]
cmp ebx, dword [eax + 4]
jne 0x10057c43
call fcn.10079637
mov eax, dword [esp + 0x14]
cmp dword [ebx + 8], 0
je 0x10057f61
cmp ebx, dword [eax + 4]
jne 0x10057c57
call fcn.10079637
mov edx, dword [ebx + 8]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0xb8]
call fcn.1001c240
mov esi, eax
push str.type
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x190], 0xf
call fcn.1001c680
push esi
mov ecx, eax
mov byte [esp + 0x18c], 0x10
call fcn.1001c980
lea ecx, [esp + 0xbc]
mov byte [esp + 0x188], 0xf
call fcn.1001c970
lea ecx, [esp + 0xb4]
mov byte [esp + 0x188], 0xe
call fcn.1001c3a0
mov edi, dword [esp + 0x14]
cmp ebx, dword [edi + 4]
jne 0x10057ccf
call fcn.10079637
mov edx, dword [ebx + 8]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0xd0]
call fcn.1001c2f0
mov esi, eax
push 0x100a3048
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x190], 0x11
call fcn.1001c680
push esi
mov ecx, eax
mov byte [esp + 0x18c], 0x12
call fcn.1001c980
lea ecx, [esp + 0xc4]
mov byte [esp + 0x188], 0x11
call fcn.1001c970
lea ecx, [esp + 0xcc]
mov byte [esp + 0x188], 0xe
call fcn.1001c3a0
cmp ebx, dword [edi + 4]
jne 0x10057d44
call fcn.10079637
mov edi, dword [ebx + 8]
mov esi, dword [edi + 0xc]
add edi, 8
cmp esi, dword [edi + 8]
jbe 0x10057d57
call fcn.10079637
mov dword [esp + 0x1c], edi
jmp 0x10057d60
mov eax, dword [esp + 0x28]
add eax, 0x6c
cmp ebx, dword [eax + 4]
jne 0x10057d71
call fcn.10079637
mov edi, dword [ebx + 8]
mov eax, dword [edi + 0x10]
add edi, 8
cmp dword [edi + 4], eax
mov dword [esp + 0x24], eax
jbe 0x10057d88
call fcn.10079637
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10057d94
cmp eax, edi
je 0x10057d99
call fcn.10079637
cmp esi, dword [esp + 0x24]
je 0x10057ee7
cmp dword [esp + 0x1c], 0
jne 0x10057daf
call fcn.10079637
mov edx, dword [esp + 0x1c]
cmp esi, dword [edx + 8]
jb 0x10057dbd
call fcn.10079637
mov eax, dword [esi]
push eax
lea ecx, [esp + 0xf0]
push ecx
call fcn.100038b0
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x198], 0x13
call fcn.10012640
add esp, 0x10
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x114]
mov byte [esp + 0x194], 0x14
call fcn.10002140
cmp dword [esp + 0x70], 0x10
jb 0x10057e10
mov eax, dword [esp + 0x5c]
push eax
call fcn.10079508
add esp, 4
cmp dword [esp + 0x104], 8
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x188], 0xe
jb 0x10057e47
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.10079508
add esp, 4
mov edx, dword [esp + 0x1c]
cmp esi, dword [edx + 8]
jb 0x10057e55
call fcn.10079637
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0xd8]
call fcn.1001c2f0
mov edi, eax
cmp dword [esp + 0x120], 0x10
mov eax, dword [esp + 0x10c]
mov byte [esp + 0x188], 0x15
jae 0x10057e87
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0x34]
call fcn.1001c680
push edi
mov ecx, eax
mov byte [esp + 0x18c], 0x16
call fcn.1001c980
lea ecx, [esp + 0xe4]
mov byte [esp + 0x188], 0x15
call fcn.1001c970
lea ecx, [esp + 0xd4]
mov byte [esp + 0x188], 0xe
call fcn.1001c3a0
mov edx, dword [esp + 0x1c]
cmp esi, dword [edx + 8]
jb 0x10057edf
call fcn.10079637
add esi, 8
jmp 0x10057d60
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x58]
call fcn.1001c710
lea ecx, [esp + 0x40]
call fcn.1001c3a0
lea ecx, [esp + 0x2c]
call fcn.1001c5c0
mov eax, dword [esp + 0x28]
add eax, 0x6c
cmp ebx, dword [eax + 4]
mov dword [esp + 0x14], eax
jne 0x10057f21
call fcn.10079637
mov esi, dword [ebx + 8]
xor edi, edi
cmp esi, edi
je 0x10057f4c
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x10057f3a
push eax
call fcn.10079508
add esp, 4
push esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.10079508
add esp, 4
mov edx, dword [esp + 0x14]
cmp ebx, dword [edx + 4]
jne 0x10057f5a
call fcn.10079637
mov dword [ebx + 8], edi
mov edi, dword [esp + 0x28]
lea esi, [edi + 0x6c]
mov eax, esi
cmp ebx, dword [eax + 4]
mov dword [esp + 0x14], eax
jne 0x10057f74
call fcn.10079637
mov ebx, dword [ebx]
mov eax, dword [esp + 0x14]
jmp 0x10057c00
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 4]
mov dword [ecx + 4], ecx
cmp eax, dword [esi + 4]
mov dword [esi + 8], 0
je 0x10057faa
mov ebx, dword [eax]
push eax
call fcn.10079508
add esp, 4
cmp ebx, dword [esi + 4]
mov eax, ebx
jne 0x10057f98
lea ecx, [esp + 0x34]
call fcn.1001fac0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x190], 0x17
call fcn.1001fbe0
cmp dword [esp + 0x13c], 0x10
mov eax, dword [esp + 0x128]
mov byte [esp + 0x188], 0x18
jae 0x10057ff1
lea eax, [esp + 0x128]
push eax
lea edx, [esp + 0x160]
push edx
call fcn.10012540
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x30], esp
xor esi, esi
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x180]
mov bl, 0x19
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], esi
push eax
mov byte [esp + 0x1b0], bl
mov word [ecx + 4], si
call fcn.10002490
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push esi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], esi
push 0x100a5f48
mov byte [esp + 0x1c8], 0x1a
mov word [ecx + 4], si
call fcn.10004560
push 0xffffffffffffffff
push 0x14
mov ecx, edi
mov byte [esp + 0x1c8], bl
call fcn.10056d00
cmp dword [esp + 0x174], 8
jb 0x10058087
mov ecx, dword [esp + 0x160]
push ecx
call fcn.10079508
add esp, 4
cmp dword [esp + 0x13c], 0x10
mov dword [esp + 0x174], 7
mov dword [esp + 0x170], esi
mov word [esp + 0x160], si
jb 0x100580bb
mov edx, dword [esp + 0x128]
push edx
call fcn.10079508
add esp, 4
mov ebx, 0xf
lea ecx, [esp + 0x34]
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x138], esi
mov byte [esp + 0x128], 0
mov byte [esp + 0x188], 0xe
call fcn.1001fb60
cmp dword [esp + 0x120], 0x10
jb 0x10058101
mov eax, dword [esp + 0x10c]
push eax
call fcn.10079508
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x120], ebx
mov dword [esp + 0x11c], esi
mov byte [esp + 0x10c], 0
mov byte [esp + 0x188], 0xc
call fcn.1001c3a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x188], 0xb
call fcn.1001c3a0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x188], 0xffffffff
call fcn.10007fe0
xor ebx, ebx
mov dword [esp + 0x158], 0xf
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
lea ecx, [edi + 0x44]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18c], 0x1b
call fcn.10007fc0
mov eax, dword [edi + 0x4c]
cmp eax, ebx
mov byte [esp + 0x188], 0x1c
je 0x10058199
mov edx, dword [edi + 0x50]
sub edx, eax
sar edx, 2
jne 0x100581c5
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 0x1b
call fcn.10007fe0
cmp dword [esp + 0x158], 0x10
jb 0x100585c6
mov eax, dword [esp + 0x144]
push eax
jmp 0x100585be
lea ecx, [esp + 0x1c]
call fcn.1001c110
lea ecx, [esp + 0x34]
mov byte [esp + 0x188], 0x1d
call fcn.1001fac0
mov byte [esp + 0x188], 0x1e
jmp 0x100581f0
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x1005837a
mov eax, dword [edi + 0x50]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x1005837a
push 3
push 0x100a29d0
lea ecx, [esp + 0x110]
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], 0
mov byte [esp + 0x114], 0
call fcn.10004490
mov ecx, dword [edi + 0x4c]
test ecx, ecx
mov byte [esp + 0x188], 0x1f
je 0x10058257
mov eax, dword [edi + 0x50]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1005825c
call fcn.10079637
mov eax, dword [edi + 0x4c]
lea ecx, [esp + 0x108]
lea esi, [ebx*4]
push ecx
mov ecx, dword [eax + esi]
add eax, esi
lea edx, [esp + 0x5c]
push edx
call fcn.1001c810
push eax
lea eax, [esp + 0x160]
push eax
mov byte [esp + 0x190], 0x20
call fcn.10012670
add esp, 8
cmp dword [esp + 0x70], 8
jb 0x100582aa
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.10079508
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], eax
mov word [esp + 0x5c], ax
cmp dword [esp + 0x120], 0x10
mov byte [esp + 0x188], 0x23
jb 0x100582df
mov edx, dword [esp + 0x10c]
push edx
call fcn.10079508
add esp, 4
lea eax, [esp + 0x15c]
push eax
lea ecx, [edi + 0x88]
push ecx
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], 0
mov byte [esp + 0x114], 0
call fcn.10055cd0
add esp, 8
cmp eax, 0xffffffff
jne 0x10058350
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x1005832c
mov eax, dword [edi + 0x50]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x10058331
call fcn.10079637
mov eax, dword [edi + 0x4c]
add eax, esi
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x24]
call fcn.1001c710
lea ecx, [esp + 0x40]
call fcn.1001c3a0
cmp dword [esp + 0x174], 0x10
mov byte [esp + 0x188], 0x1e
jb 0x10058372
mov edx, dword [esp + 0x160]
push edx
call fcn.10079508
add esp, 4
add ebx, 1
jmp 0x100581f0
lea ecx, [esp + 0x1c]
call fcn.1001c5a0
test eax, eax
jbe 0x100583d8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x3c]
call fcn.1001fbe0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x14c]
mov byte [esp + 0x194], 0x24
call fcn.10002140
cmp dword [esp + 0x104], 0x10
mov byte [esp + 0x188], 0x1e
jb 0x100583d8
mov edx, dword [esp + 0xf0]
push edx
call fcn.10079508
add esp, 4
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x1005841f
mov eax, dword [edi + 0x50]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x1005841f
test ecx, ecx
je 0x10058403
mov eax, dword [edi + 0x50]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10058408
call fcn.10079637
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x1005841a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
add esi, 1
jmp 0x100583e0
mov ebx, dword [edi + 0x50]
cmp ecx, ebx
jbe 0x1005842b
call fcn.10079637
mov esi, dword [edi + 0x4c]
cmp esi, dword [edi + 0x50]
jbe 0x10058438
call fcn.10079637
cmp esi, ebx
je 0x10058469
mov eax, dword [edi + 0x50]
sub eax, ebx
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [esi + ecx]
mov dword [esp + 0x24], edx
jle 0x10058462
push ecx
push ebx
push ecx
push esi
call fcn.100792fc
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [edi + 0x50], eax
xor esi, esi
lea ecx, [esp + 0x34]
mov dword [edi + 0xb4], esi
mov byte [esp + 0x188], 0x1d
call fcn.1001fb60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 0x1c
call fcn.1001c3a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 0x1b
call fcn.10007fe0
mov eax, dword [esp + 0x154]
cmp eax, 3
mov ebx, eax
jbe 0x100585ac
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x40], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], esi
mov edi, eax
je 0x1005851f
test eax, eax
jbe 0x10058513
push eax
call fcn.100788a2
mov esi, eax
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
jbe 0x10058502
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x10058513
cmp eax, edi
jb 0x100584f7
mov eax, edi
push eax
push ecx
push esi
call fcn.10079720
add esp, 0xc
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10058513
push eax
call fcn.10079647
add esp, 4
mov ecx, esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edi
xor esi, esi
mov eax, dword [esp + 0x144]
mov edi, 0x10
cmp dword [esp + 0x158], edi
mov byte [esp + 0x188], 0x25
jae 0x10058543
lea eax, [esp + 0x144]
push ebx
push eax
push ecx
call fcn.10079a90
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp ebx, eax
mov dword [esp + 0x4c], eax
ja 0x1005855e
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x74]
push ecx
lea edx, [esp + 0x44]
push 3
push edx
call fcn.100011a0
mov eax, dword [esp + 0x54]
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x40], vtable.GameMgr::GMBuffer_unsigned_char_.0
je 0x1005858f
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x48], esi
cmp dword [esp + 0x158], edi
jb 0x100585a8
mov eax, dword [esp + 0x144]
push eax
call fcn.10079508
add esp, 4
mov al, 1
jmp 0x100585c8
cmp dword [esp + 0x158], 0x10
jb 0x100585c6
mov ecx, dword [esp + 0x144]
push ecx
call fcn.10079508
add esp, 4
xor al, al
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.1007a1bc
mov esp, ebp
pop ebp
ret 4