Function at 0x507920
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d07f7
mov eax, dword fs:[0]
push eax
sub esp, 0x6cc
mov eax, dword [0x6327e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6a4], ecx
mov esi, dword [ebp + 8]
push 0x14
mov byte [ebp - 0x698], 0x12
call fcn.0055f3ea
add esp, 4
mov dword [ebp - 0x6c4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x50798f
push 0x286
mov ecx, eax
call fcn.00448380
mov ebx, eax
mov dword [ebp - 0x6cc], eax
jmp 0x507997
xor ebx, ebx
mov dword [ebp - 0x6cc], ebx
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004488c0
lea eax, [ebp - 0x69d]
mov dword [ebx + 8], 0
xor edi, edi
mov dword [ebp - 0x6a8], 9
push eax
mov ecx, ebx
mov dword [ebp - 0x6c0], edi
call fcn.004483e0
lea eax, [ebp - 0x69d]
mov ecx, ebx
push eax
call fcn.004483e0
mov al, byte [ebp - 0x69d]
mov ecx, ebx
mov byte [ebp - 0x41c], al
lea eax, [ebp - 0x69d]
push eax
call fcn.004483e0
cmp byte [ebp - 0x41c], 0
mov al, byte [ebp - 0x69d]
mov byte [ebp - 0x413], al
je 0x507a27
cmp al, 1
mov dword [ebp - 0x6a8], 0xb
mov ecx, 2
cmove edi, ecx
mov dword [ebp - 0x6c0], edi
mov eax, edi
mov dword [ebp - 0x69c], edi
shl eax, 5
mov dword [ebp - 0x6ac], eax
mov esi, eax
mov dword [ebp - 0x6c4], eax
lea eax, [ebp - 0x4a4]
lea eax, [eax + edi*4]
mov dword [ebp - 0x6b0], eax
mov eax, edi
mov edi, dword [ebp - 0x6b0]
nop word [eax + eax]
lea ecx, [ebp - 0x537]
add eax, ecx
mov ecx, ebx
push eax
mov dword [ebp - 0x6bc], eax
call fcn.004483c0
mov eax, dword [ebp - 0x6bc]
cmp byte [eax], 0xff
jne 0x507a8e
mov byte [ebp + esi - 0x697], 0
jmp 0x507c02
mov edi, dword [ebp - 0x6cc]
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [ebp - 0x6ac]
lea esi, [ebp - 0x697]
add eax, ebx
mov ecx, edi
add esi, eax
push esi
call fcn.004483c0
cmp byte [esi], 0
je 0x507ac6
inc ebx
cmp ebx, 0x3e8
jl 0x507aa0
mov edi, dword [ebp - 0x6b0]
mov ebx, dword [ebp - 0x6cc]
mov ecx, ebx
lea esi, [edi - 0x30]
lea eax, [esi - 0x58]
push eax
call fcn.00448480
push esi
mov ecx, ebx
call fcn.00448480
lea eax, [esi - 0x2c]
mov ecx, ebx
push eax
call fcn.00448480
mov ecx, dword [ebp - 0x6bc]
movsx eax, byte [ecx]
dec eax
cmp eax, 0xd
ja case.0x507b0d.4
movzx eax, byte [eax + 0x508a20]
jmp dword [eax*4 + 0x508a08]
lea eax, [ebp - 0x6b4]
mov ecx, ebx
push eax
call fcn.00448480
movd xmm0, dword [ebp - 0x6b4]
cvtdq2ps xmm0, xmm0
movss dword [edi], xmm0
lea eax, [ebp - 0x6b4]
mov ecx, ebx
push eax
call fcn.00448480
movd xmm0, dword [ebp - 0x6b4]
jmp 0x507be7
lea eax, [ebp - 0x6b8]
mov ecx, ebx
push eax
call fcn.00448440
movd xmm0, dword [ebp - 0x6b8]
cvtdq2ps xmm0, xmm0
movss dword [edi], xmm0
jmp 0x507bd1
lea eax, [ebp - 0x6d0]
mov ecx, ebx
push eax
call fcn.004484a0
mov eax, dword [ebp - 0x6d0]
mov ecx, ebx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5d8230]
lea eax, [ebp - 0x6d8]
push eax
cvtpd2ps xmm0, xmm0
movss dword [edi], xmm0
call fcn.00448690
mov edx, dword [ebp - 0x6d4]
mov ecx, dword [ebp - 0x6d8]
call fcn.0055f7d0
jmp 0x507bed
push edi
mov ecx, ebx
call fcn.004484c0
jmp 0x507b31
push edi
mov ecx, ebx
call fcn.004484c0
lea eax, [ebp - 0x6b8]
mov ecx, ebx
push eax
call fcn.00448440
movd xmm0, dword [ebp - 0x6b8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mov esi, dword [ebp - 0x69c]
movsd qword [ebp + esi*8 - 0x478], xmm0
mov esi, dword [ebp - 0x6ac]
mov eax, dword [ebp - 0x69c]
add esi, 0x20
inc eax
mov dword [ebp - 0x6ac], esi
add edi, 4
mov dword [ebp - 0x69c], eax
mov dword [ebp - 0x6b0], edi
cmp eax, dword [ebp - 0x6a8]
jl 0x507a60
lea eax, [ebp - 0x4a8]
mov ecx, ebx
push eax
call fcn.00448480
lea eax, [ebp - 0x41b]
mov ecx, ebx
push eax
call fcn.00448670
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00448440
mov ecx, ebx
call fcn.004483b0
push 0x14
push ebx
call fcn.0055f41a
mov edi, dword [ebp - 0x6c0]
add esp, 8
cmp byte [ebp - 0x41c], 0
je 0x50835c
mov esi, dword [ebp - 0x6a4]
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x417]
mov dword [esi + 0x23a4], eax
mov eax, dword [ebp - 0x41b]
mov dword [esi + 0x23e0], eax
mov eax, dword [esi + 0x23bc]
mov dword [esi + 0x23e4], ecx
mov ecx, dword [esi + 0x2c0]
cmp eax, 0xc8
jne 0x507d62
push 0x22
add ecx, 0x140
call fcn.0044e420
push 0x5d8adc
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, dword [esi + 0x2c0]
push 0x23
add ecx, 0x140
call fcn.0044e420
push 0x5d8adc
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, dword [esi + 0x2c0]
push 0x1c
add ecx, 0x140
call fcn.0044e420
mov ecx, dword [ebp - 0x6a4]
mov esi, eax
lea eax, [ebp - 0x410]
push dword [ecx + 0x23e4]
push dword [ecx + 0x23e0]
push str._lld
push eax
call fcn.0043d380
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
add esp, 0x10
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov dword [esi + 0x170], 0xfffff0be
mov esi, dword [ebp - 0x6a4]
mov ecx, dword [esi + 0x2c0]
mov eax, dword [esi + 0x13c]
mov dword [ecx + 0x164], eax
jmp 0x507dab
cmp eax, 0xc9
jne 0x507d71
mov eax, dword [esi + 0x144]
jmp 0x507d86
cmp eax, 0xca
jne 0x507d80
mov eax, dword [esi + 0x148]
jmp 0x507d86
mov eax, dword [esi + 0x140]
mov dword [ecx + 0x164], eax
mov ecx, dword [esi + 0x2c0]
push 0x1c
add ecx, 0x140
call fcn.0044e420
push 0x5d8adc
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
imul eax, edi, 0x5c
lea ebx, [ebp - 0x697]
add ebx, dword [ebp - 0x6c4]
add eax, 0x350
add eax, esi
mov dword [ebp - 0x6b0], eax
nop word [eax + eax]
mov ecx, dword [esi + 0x2c0]
lea eax, [edi + 0x22]
push eax
add ecx, 0x140
call fcn.0044e420
cmp byte [ebx], 0
mov esi, eax
jne 0x507df5
mov byte [ebp - 0x410], 0
jmp 0x507e2e
mov eax, dword [ebp + edi*4 - 0x4d4]
cmp eax, 1
jle 0x507e19
push eax
push ebx
lea eax, [ebp - 0x410]
push str._s___ld_
push eax
call fcn.0043d380
add esp, 0x10
jmp 0x507e2e
push ebx
lea eax, [ebp - 0x410]
push 0x5d8428
push eax
call fcn.0043d380
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov dword [esi + 0x170], 0xffffffff
cmp byte [ebp + edi - 0x537], 0
jne 0x507e5a
mov dword [esi + 0x170], 0xff96ff96
cmp byte [ebp + edi - 0x537], 1
jne 0x507e6e
mov dword [esi + 0x170], 0xffff9696
cmp byte [ebp + edi - 0x537], 0xe
jne 0x507e82
mov dword [esi + 0x170], 0xff9696ff
cmp byte [ebp + edi - 0x537], 2
jne 0x507e96
mov dword [esi + 0x170], 0xffff96ff
cmp byte [ebp + edi - 0x537], 9
jne 0x507eaa
mov dword [esi + 0x170], 0xffffeb96
cmp byte [ebp + edi - 0x537], 0xa
jne 0x507ebe
mov dword [esi + 0x170], 0xffd27300
cmp byte [ebp + edi - 0x537], 3
jne 0x507ed2
mov dword [esi + 0x170], 0xffffff96
cmp byte [ebp + edi - 0x537], 4
jne 0x507ee6
mov dword [esi + 0x170], 0xff96ffff
cmp byte [ebp + edi - 0x537], 8
jne 0x507efa
mov dword [esi + 0x170], 0xffff73c8
cmp byte [ebp + edi - 0x537], 0xb
jne 0x507f0e
mov dword [esi + 0x170], 0xff64ff64
cmp byte [ebp + edi - 0x537], 0xc
jne 0x507f22
mov dword [esi + 0x170], 0xff32ff64
cmp byte [ebp + edi - 0x537], 0xd
jne 0x507f36
mov dword [esi + 0x170], 0xff00ff64
cmp byte [ebp + edi - 0x537], 0xf
jne 0x507f4a
mov dword [esi + 0x170], 0xff3264ff
cmp byte [ebp + edi - 0x537], 0x10
jne 0x507f5e
mov dword [esi + 0x170], 0xff969637
cmp byte [ebp + edi - 0x537], 0x11
jne 0x507f72
mov dword [esi + 0x170], 0xffff9637
cmp byte [ebp + edi - 0x537], 0x14
jne 0x507f86
mov dword [esi + 0x170], 0xffff9637
cmp byte [ebp + edi - 0x537], 0x12
jne 0x507f9a
mov dword [esi + 0x170], 0xffffb437
cmp byte [ebp + edi - 0x537], 0x13
jne 0x507fae
mov dword [esi + 0x170], 0xffffb437
cmp byte [ebp + edi - 0x537], 0x15
jne 0x507fc2
mov dword [esi + 0x170], 0xffffc8c8
mov edx, dword [ebp - 0x6b0]
mov cl, byte [ebp + edi - 0x537]
movsx eax, cl
mov dword [edx - 8], eax
mov eax, dword [ebp + edi*4 - 0x52c]
mov dword [edx], eax
lea eax, [edi*8]
cmp cl, 1
jne 0x508071
cmp byte [ebx], 0
mov dword [ebp - 0x69c], eax
jne 0x508002
mov byte [ebp - 0x410], 0
jmp 0x50805d
mov edx, dword [ebp + edi*4 - 0x4d4]
cvttsd2si eax, qword [ebp + eax - 0x478]
cvttss2si ecx, dword [ebp + edi*4 - 0x4a4]
cmp edx, 1
jle 0x50803a
push edx
push eax
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d__d___ld_
push eax
call fcn.0043d380
add esp, 0x18
jmp 0x50805d
push eax
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d__d_
push eax
call fcn.0043d380
mov eax, dword [ebp - 0x69c]
add esp, 0x14
mov dword [ebp - 0x69c], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x69c]
cmp byte [ebp + edi - 0x537], 6
lea eax, [ebp + eax - 0x478]
mov dword [ebp - 0x69c], eax
jne 0x50815a
cmp byte [ebx], 0
jne 0x5080ab
mov byte [ebp - 0x410], 0
lea ecx, [ebp - 0x410]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x508160
movsd xmm1, qword [0x5dd448]
xorps xmm0, xmm0
movlpd qword [ebp - 0x6c8], xmm0
movsd xmm0, qword [eax]
comisd xmm0, xmm1
jb 0x5080f4
subsd xmm0, xmm1
comisd xmm1, xmm0
jbe 0x5080f4
mov eax, dword [ebp - 0x6c8]
add eax, 0
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp - 0x6c4]
adc eax, 0x80000000
mov dword [ebp - 0x6bc], eax
jmp 0x50810c
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x6bc], eax
mov eax, dword [ebp - 0x6c8]
mov dword [ebp - 0x6c0], eax
call fcn.0055f720
add eax, dword [ebp - 0x6c0]
adc edx, dword [ebp - 0x6bc]
push edx
push eax
cvttss2si eax, dword [ebp + edi*4 - 0x4a4]
push eax
push ebx
lea eax, [ebp - 0x410]
push str._s__d___llu_
push eax
call fcn.0043d380
mov eax, dword [ebp - 0x69c]
lea ecx, [ebp - 0x410]
add esp, 0x18
mov dword [ebp - 0x69c], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x508160
mov dword [ebp - 0x69c], eax
cmp byte [ebp + edi - 0x537], 3
jne 0x5081a2
cmp byte [ebx], 0
jne 0x508178
mov byte [ebp - 0x410], 0
jmp 0x508194
push dword [ebp + edi*4 - 0x4d4]
lea eax, [ebp - 0x410]
push ebx
push str._s___d_
push eax
call fcn.0043d380
add esp, 0x10
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call dword [eax + 0x30]
cmp byte [ebp + edi - 0x537], 2
jne 0x508274
cmp byte [ebx], 0
jne 0x5081c1
mov byte [ebp - 0x410], 0
jmp 0x508266
mov eax, dword [ebp - 0x69c]
movss xmm2, dword [0x5d9058]
movsd xmm0, qword [eax]
divsd xmm0, qword [0x5ea488]
mulsd xmm0, qword [0x5ea4a0]
cvtpd2ps xmm1, xmm0
comiss xmm2, xmm1
movaps xmm0, xmm1
jbe 0x5081f7
mulss xmm0, dword [0x5d908c]
mov eax, str._s___d__dm_
mov ecx, str._s___d__dh_
cmova ecx, eax
cvttss2si eax, xmm0
push eax
cvttss2si eax, dword [ebp + edi*4 - 0x4a4]
neg eax
push eax
push ebx
push ecx
lea eax, [ebp - 0x410]
push eax
call fcn.0043d380
add esp, 0x14
cmp dword [ebp + edi*4 - 0x4d4], 1
jle 0x508266
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x508240
push dword [ebp + edi*4 - 0x4d4]
sub ecx, edx
lea eax, [ebp - 0x410]
add eax, ecx
push 0x5e7764
push eax
call fcn.0043d380
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call dword [eax + 0x30]
cmp byte [ebp + edi - 0x537], 0xe
jne 0x50833a
cmp byte [ebx], 0
jne 0x508293
mov byte [ebp - 0x410], 0
jmp 0x50832c
mov eax, dword [ebp - 0x69c]
movsd xmm1, qword [0x5ea4a8]
cvttss2si ecx, dword [ebp + edi*4 - 0x4a4]
movsd xmm0, qword [eax]
ucomisd xmm1, xmm0
lahf
neg ecx
test ah, 0x44
jp 0x5082d2
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d_
push eax
call fcn.0043d380
add esp, 0x10
jmp 0x5082ed
cvttsd2si eax, xmm0
push eax
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d__dc_
push eax
call fcn.0043d380
add esp, 0x14
mov edx, dword [ebp + edi*4 - 0x4d4]
cmp edx, 1
jle 0x50832c
lea ecx, [ebp - 0x410]
lea eax, [ecx + 1]
mov dword [ebp - 0x6c4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x508308
sub ecx, dword [ebp - 0x6c4]
lea eax, [ebp - 0x410]
push edx
add eax, ecx
push 0x5e7764
push eax
call fcn.0043d380
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call dword [eax + 0x30]
add dword [ebp - 0x6b0], 0x5c
inc edi
mov esi, dword [ebp - 0x6a4]
add ebx, 0x20
cmp edi, dword [ebp - 0x6a8]
jl 0x507dd0
jmp 0x5089e9
mov al, byte [ebp - 0x413]
cmp al, 6
je 0x50866d
cmp al, 7
je 0x50866d
cmp al, 0xb
je 0x50866d
test al, al
je 0x50866d
cmp al, 0xc
jne 0x508438
mov edi, dword [ebp - 0x6a4]
mov ecx, edi
push 1
call fcn.00509670
mov ecx, dword [edi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044e420
test eax, eax
jne 0x5083d2
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2dc]
add ecx, 0x140
call fcn.0044e390
mov ecx, dword [edi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x2dc]
mov eax, dword [ebp - 0x4a8]
add ecx, 0x140
push 0x3d
mov dword [edi + 0x23d4], eax
call fcn.0044e420
push dword [ebp - 0x417]
mov esi, eax
lea eax, [ebp - 0x410]
push dword [ebp - 0x41b]
push str.Bank:__lld
push eax
call fcn.0043d380
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
add esp, 0x10
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x420]
mov dword [edi + 0x23a8], eax
mov eax, dword [edi + 0x2dc]
jmp 0x508738
cmp al, 8
jne 0x50855b
mov edi, dword [ebp - 0x6a4]
push 0x2e
mov ecx, dword [edi + 0x2b8]
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x508474
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d0]
add ecx, 0x140
call fcn.0044e730
mov ecx, dword [edi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x5084a2
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2dc]
add ecx, 0x140
call fcn.0044e730
mov ecx, dword [edi + 0x2b8]
push 0x4c
add ecx, 0x140
call fcn.0044e420
test eax, eax
jne 0x5084db
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d8]
add ecx, 0x140
call fcn.0044e390
mov ecx, dword [edi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x420]
mov dword [edi + 0x23b8], eax
mov eax, dword [edi + 0x2d8]
push 0x4d
mov dword [ebp - 0x6a8], eax
mov dword [ebp - 0x6a4], 0x50
lea ecx, [eax + 0x140]
call fcn.0044e420
push dword [ebp - 0x417]
lea ecx, [edi + 0x2418]
mov esi, eax
push dword [ebp - 0x41b]
lea eax, [ebp - 0x410]
push ecx
push str._s:__lld
push eax
call fcn.0043d380
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
add esp, 0x14
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x6a8]
mov ecx, 0x1d30
mov dword [esi + 0x170], 0xfffff0be
jmp 0x508747
cmp al, 9
jne 0x5089e9
mov edi, dword [ebp - 0x6a4]
push 0x2e
mov ecx, dword [edi + 0x2b8]
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x508597
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d0]
add ecx, 0x140
call fcn.0044e730
mov ecx, dword [edi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x5085c5
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2dc]
add ecx, 0x140
call fcn.0044e730
mov ecx, dword [edi + 0x2b8]
push 0x3e
add ecx, 0x140
call fcn.0044e420
test eax, eax
jne 0x5085fe
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d4]
add ecx, 0x140
call fcn.0044e390
mov ecx, dword [edi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x420]
mov dword [edi + 0x23b4], eax
mov eax, dword [edi + 0x2d4]
push 0x3f
mov dword [ebp - 0x6a8], eax
mov dword [ebp - 0x6a4], 0x42
lea ecx, [eax + 0x140]
call fcn.0044e420
push dword [ebp - 0x417]
mov esi, eax
lea eax, [ebp - 0x410]
push dword [ebp - 0x41b]
push str.You:__lld
push eax
call fcn.0043d380
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
add esp, 0x10
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x6a8]
mov ecx, 0x16b8
jmp 0x508747
mov edi, dword [ebp - 0x6a4]
mov ecx, edi
push 1
call fcn.00509670
mov ecx, dword [edi + 0x2b8]
push 0x2e
add ecx, 0x140
call fcn.0044e420
test eax, eax
jne 0x5086b5
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d0]
add ecx, 0x140
call fcn.0044e390
mov ecx, dword [edi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x2d0]
mov eax, dword [ebp - 0x4a8]
add ecx, 0x140
push 0x2f
mov dword [edi + 0x23d4], eax
call fcn.0044e420
mov esi, eax
movsx eax, byte [ebp - 0x413]
cmp eax, 0xc
ja case.0x5086e9.1
movzx ecx, byte [eax + 0x508a48]
jmp dword [ecx*4 + 0x508a30]
mov edx, dword [esi]
mov ecx, esi
push str.Trader
call dword [edx + 0x30]
jmp 0x508726
push str.Trainer
jmp 0x50871f
push str.Tower_Chest
jmp 0x50871f
push str.Ground
jmp 0x50871f
push str.Account_Storage
jmp 0x50871f
push 0x5d8adc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x420]
mov dword [edi + 0x23a8], eax
mov eax, dword [edi + 0x2d0]
mov ecx, 0x9c8
mov dword [ebp - 0x6a4], 0x32
lea edx, [eax + 0x140]
xor ebx, ebx
lea eax, [ebp - 0x697]
mov dword [ebp - 0x6c4], edx
mov dword [ebp - 0x69c], eax
lea eax, [edi + ecx]
mov dword [ebp - 0x6a8], eax
lea ecx, [ebp - 0x537]
mov eax, dword [ebp - 0x6a4]
sub eax, ecx
mov dword [ebp - 0x6a4], eax
nop
lea edi, [ebp - 0x537]
mov ecx, edx
add edi, ebx
add eax, edi
push eax
call fcn.0044e420
mov esi, eax
mov eax, dword [ebp - 0x69c]
cmp byte [eax], 0
jne 0x5087a8
mov byte [ebp - 0x410], 0
jmp 0x5087ef
mov ecx, dword [ebp + ebx*4 - 0x4d4]
cmp ecx, 1
jle 0x5087d3
push ecx
push dword [ebp + ebx*4 - 0x500]
push eax
lea eax, [ebp - 0x410]
push str._s__ldg___ld_
push eax
call fcn.0043d380
add esp, 0x14
jmp 0x5087ef
push dword [ebp + ebx*4 - 0x500]
push eax
lea eax, [ebp - 0x410]
push str._s__ldg
push eax
call fcn.0043d380
add esp, 0x10
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov dword [esi + 0x170], 0xffffffff
cmp byte [edi], 0
jne 0x508816
mov dword [esi + 0x170], 0xff96ff96
cmp byte [edi], 1
jne 0x508825
mov dword [esi + 0x170], 0xffff9696
cmp byte [edi], 0xe
jne 0x508834
mov dword [esi + 0x170], 0xff9696ff
cmp byte [edi], 2
jne 0x508843
mov dword [esi + 0x170], 0xffff96ff
cmp byte [edi], 9
jne 0x508852
mov dword [esi + 0x170], 0xffffeb96
cmp byte [edi], 0xa
jne 0x508861
mov dword [esi + 0x170], 0xffd27300
cmp byte [edi], 3
jne 0x508870
mov dword [esi + 0x170], 0xffffff96
cmp byte [edi], 4
jne 0x50887f
mov dword [esi + 0x170], 0xff96ffff
cmp byte [edi], 8
jne 0x50888e
mov dword [esi + 0x170], 0xffff73c8
cmp byte [edi], 0xb
jne 0x50889d
mov dword [esi + 0x170], 0xff64ff64
cmp byte [edi], 0xc
jne 0x5088ac
mov dword [esi + 0x170], 0xff32ff64
cmp byte [edi], 0xd
jne 0x5088bb
mov dword [esi + 0x170], 0xff00ff64
cmp byte [edi], 0xf
jne 0x5088ca
mov dword [esi + 0x170], 0xff3264ff
cmp byte [edi], 0x10
jne 0x5088d9
mov dword [esi + 0x170], 0xff969637
cmp byte [edi], 0x11
jne 0x5088e8
mov dword [esi + 0x170], 0xffff9637
cmp byte [edi], 0x14
jne 0x5088f7
mov dword [esi + 0x170], 0xffff9637
cmp byte [edi], 0x12
jne 0x508906
mov dword [esi + 0x170], 0xffffb437
cmp byte [edi], 0x13
jne 0x508915
mov dword [esi + 0x170], 0xffffb437
mov edx, dword [ebp - 0x6a8]
movsx eax, byte [edi]
cmp byte [edi], 1
mov edi, dword [ebp - 0x69c]
mov dword [edx - 8], eax
mov eax, dword [ebp + ebx*4 - 0x52c]
mov dword [edx], eax
jne 0x5089c1
cmp byte [edi], 0
jne 0x508947
mov byte [ebp - 0x410], 0
jmp 0x5089ad
mov ecx, dword [ebp + ebx*4 - 0x4d4]
cvttsd2si eax, qword [ebp + ebx*8 - 0x478]
cmp ecx, 1
jle 0x508986
push ecx
push eax
cvttss2si eax, dword [ebp + ebx*4 - 0x4a4]
push eax
push dword [ebp + ebx*4 - 0x500]
lea eax, [ebp - 0x410]
push edi
push str._s__ldg___d__d___ld_
push eax
call fcn.0043d380
add esp, 0x1c
jmp 0x5089ad
push eax
cvttss2si eax, dword [ebp + ebx*4 - 0x4a4]
push eax
push dword [ebp + ebx*4 - 0x500]
lea eax, [ebp - 0x410]
push edi
push str._s__ldg___d__d_
push eax
call fcn.0043d380
add esp, 0x18
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [ebp - 0x6a8]
mov eax, dword [ebp - 0x6a4]
add edx, 0x5c
inc ebx
mov dword [ebp - 0x6a8], edx
mov edx, dword [ebp - 0x6c4]
add edi, 0x20
mov dword [ebp - 0x69c], edi
cmp ebx, 9
jl 0x508780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f428
mov esp, ebp
pop ebp
ret 8