Function at 0x507360
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0227
mov eax, dword fs:[0]
push eax
sub esp, 0x6cc
mov eax, dword [0x6317e8]
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.0055ee4a
add esp, 4
mov dword [ebp - 0x6c4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x5073cf
push 0x286
mov ecx, eax
call fcn.00448380
mov ebx, eax
mov dword [ebp - 0x6cc], eax
jmp 0x5073d7
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 0x507467
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 0x5074ce
mov byte [ebp + esi - 0x697], 0
jmp 0x507642
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 0x507506
inc ebx
cmp ebx, 0x3e8
jl 0x5074e0
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.0x50754d.4
movzx eax, byte [eax + 0x508460]
jmp dword [eax*4 + 0x508448]
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 0x507627
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 0x507611
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 + 0x5d7230]
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.0055f230
jmp 0x50762d
push edi
mov ecx, ebx
call fcn.004484c0
jmp 0x507571
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 0x5074a0
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.0055ee7a
mov edi, dword [ebp - 0x6c0]
add esp, 8
cmp byte [ebp - 0x41c], 0
je 0x507d9c
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 0x5077a2
push 0x22
add ecx, 0x140
call fcn.0044e420
push 0x5d7adc
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 0x5d7adc
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 0x5077eb
cmp eax, 0xc9
jne 0x5077b1
mov eax, dword [esi + 0x144]
jmp 0x5077c6
cmp eax, 0xca
jne 0x5077c0
mov eax, dword [esi + 0x148]
jmp 0x5077c6
mov eax, dword [esi + 0x140]
mov dword [ecx + 0x164], eax
mov ecx, dword [esi + 0x2c0]
push 0x1c
add ecx, 0x140
call fcn.0044e420
push 0x5d7adc
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 0x507835
mov byte [ebp - 0x410], 0
jmp 0x50786e
mov eax, dword [ebp + edi*4 - 0x4d4]
cmp eax, 1
jle 0x507859
push eax
push ebx
lea eax, [ebp - 0x410]
push str._s___ld_
push eax
call fcn.0043d380
add esp, 0x10
jmp 0x50786e
push ebx
lea eax, [ebp - 0x410]
push 0x5d7428
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 0x50789a
mov dword [esi + 0x170], 0xff96ff96
cmp byte [ebp + edi - 0x537], 1
jne 0x5078ae
mov dword [esi + 0x170], 0xffff9696
cmp byte [ebp + edi - 0x537], 0xe
jne 0x5078c2
mov dword [esi + 0x170], 0xff9696ff
cmp byte [ebp + edi - 0x537], 2
jne 0x5078d6
mov dword [esi + 0x170], 0xffff96ff
cmp byte [ebp + edi - 0x537], 9
jne 0x5078ea
mov dword [esi + 0x170], 0xffffeb96
cmp byte [ebp + edi - 0x537], 0xa
jne 0x5078fe
mov dword [esi + 0x170], 0xffd27300
cmp byte [ebp + edi - 0x537], 3
jne 0x507912
mov dword [esi + 0x170], 0xffffff96
cmp byte [ebp + edi - 0x537], 4
jne 0x507926
mov dword [esi + 0x170], 0xff96ffff
cmp byte [ebp + edi - 0x537], 8
jne 0x50793a
mov dword [esi + 0x170], 0xffff73c8
cmp byte [ebp + edi - 0x537], 0xb
jne 0x50794e
mov dword [esi + 0x170], 0xff64ff64
cmp byte [ebp + edi - 0x537], 0xc
jne 0x507962
mov dword [esi + 0x170], 0xff32ff64
cmp byte [ebp + edi - 0x537], 0xd
jne 0x507976
mov dword [esi + 0x170], 0xff00ff64
cmp byte [ebp + edi - 0x537], 0xf
jne 0x50798a
mov dword [esi + 0x170], 0xff3264ff
cmp byte [ebp + edi - 0x537], 0x10
jne 0x50799e
mov dword [esi + 0x170], 0xff969637
cmp byte [ebp + edi - 0x537], 0x11
jne 0x5079b2
mov dword [esi + 0x170], 0xffff9637
cmp byte [ebp + edi - 0x537], 0x14
jne 0x5079c6
mov dword [esi + 0x170], 0xffff9637
cmp byte [ebp + edi - 0x537], 0x12
jne 0x5079da
mov dword [esi + 0x170], 0xffffb437
cmp byte [ebp + edi - 0x537], 0x13
jne 0x5079ee
mov dword [esi + 0x170], 0xffffb437
cmp byte [ebp + edi - 0x537], 0x15
jne 0x507a02
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 0x507ab1
cmp byte [ebx], 0
mov dword [ebp - 0x69c], eax
jne 0x507a42
mov byte [ebp - 0x410], 0
jmp 0x507a9d
mov edx, dword [ebp + edi*4 - 0x4d4]
cvttsd2si eax, qword [ebp + eax - 0x478]
cvttss2si ecx, dword [ebp + edi*4 - 0x4a4]
cmp edx, 1
jle 0x507a7a
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 0x507a9d
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 0x507b9a
cmp byte [ebx], 0
jne 0x507aeb
mov byte [ebp - 0x410], 0
lea ecx, [ebp - 0x410]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x507ba0
movsd xmm1, qword [0x5dc420]
xorps xmm0, xmm0
movlpd qword [ebp - 0x6c8], xmm0
movsd xmm0, qword [eax]
comisd xmm0, xmm1
jb 0x507b34
subsd xmm0, xmm1
comisd xmm1, xmm0
jbe 0x507b34
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 0x507b4c
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x6bc], eax
mov eax, dword [ebp - 0x6c8]
mov dword [ebp - 0x6c0], eax
call fcn.0055f180
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 0x507ba0
mov dword [ebp - 0x69c], eax
cmp byte [ebp + edi - 0x537], 3
jne 0x507be2
cmp byte [ebx], 0
jne 0x507bb8
mov byte [ebp - 0x410], 0
jmp 0x507bd4
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 0x507cb4
cmp byte [ebx], 0
jne 0x507c01
mov byte [ebp - 0x410], 0
jmp 0x507ca6
mov eax, dword [ebp - 0x69c]
movss xmm2, dword [0x5d8058]
movsd xmm0, qword [eax]
divsd xmm0, qword [0x5e9468]
mulsd xmm0, qword [0x5e9480]
cvtpd2ps xmm1, xmm0
comiss xmm2, xmm1
movaps xmm0, xmm1
jbe 0x507c37
mulss xmm0, dword [0x5d808c]
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 0x507ca6
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x507c80
push dword [ebp + edi*4 - 0x4d4]
sub ecx, edx
lea eax, [ebp - 0x410]
add eax, ecx
push 0x5e6744
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 0x507d7a
cmp byte [ebx], 0
jne 0x507cd3
mov byte [ebp - 0x410], 0
jmp 0x507d6c
mov eax, dword [ebp - 0x69c]
movsd xmm1, qword [0x5e9488]
cvttss2si ecx, dword [ebp + edi*4 - 0x4a4]
movsd xmm0, qword [eax]
ucomisd xmm1, xmm0
lahf
neg ecx
test ah, 0x44
jp 0x507d12
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d_
push eax
call fcn.0043d380
add esp, 0x10
jmp 0x507d2d
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 0x507d6c
lea ecx, [ebp - 0x410]
lea eax, [ecx + 1]
mov dword [ebp - 0x6c4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x507d48
sub ecx, dword [ebp - 0x6c4]
lea eax, [ebp - 0x410]
push edx
add eax, ecx
push 0x5e6744
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 0x507810
jmp 0x508429
mov al, byte [ebp - 0x413]
cmp al, 6
je 0x5080ad
cmp al, 7
je 0x5080ad
cmp al, 0xb
je 0x5080ad
test al, al
je 0x5080ad
cmp al, 0xc
jne 0x507e78
mov edi, dword [ebp - 0x6a4]
mov ecx, edi
push 1
call fcn.005090b0
mov ecx, dword [edi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044e420
test eax, eax
jne 0x507e12
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 0x508178
cmp al, 8
jne 0x507f9b
mov edi, dword [ebp - 0x6a4]
push 0x2e
mov ecx, dword [edi + 0x2b8]
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x507eb4
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 0x507ee2
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 0x507f1b
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 0x508187
cmp al, 9
jne 0x508429
mov edi, dword [ebp - 0x6a4]
push 0x2e
mov ecx, dword [edi + 0x2b8]
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x507fd7
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 0x508005
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 0x50803e
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 0x508187
mov edi, dword [ebp - 0x6a4]
mov ecx, edi
push 1
call fcn.005090b0
mov ecx, dword [edi + 0x2b8]
push 0x2e
add ecx, 0x140
call fcn.0044e420
test eax, eax
jne 0x5080f5
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.0x508129.1
movzx ecx, byte [eax + 0x508488]
jmp dword [ecx*4 + 0x508470]
mov edx, dword [esi]
mov ecx, esi
push str.Trader
call dword [edx + 0x30]
jmp 0x508166
push str.Trainer
jmp 0x50815f
push str.Tower_Chest
jmp 0x50815f
push str.Ground
jmp 0x50815f
push str.Account_Storage
jmp 0x50815f
push 0x5d7adc
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 0x5081e8
mov byte [ebp - 0x410], 0
jmp 0x50822f
mov ecx, dword [ebp + ebx*4 - 0x4d4]
cmp ecx, 1
jle 0x508213
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 0x50822f
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 0x508256
mov dword [esi + 0x170], 0xff96ff96
cmp byte [edi], 1
jne 0x508265
mov dword [esi + 0x170], 0xffff9696
cmp byte [edi], 0xe
jne 0x508274
mov dword [esi + 0x170], 0xff9696ff
cmp byte [edi], 2
jne 0x508283
mov dword [esi + 0x170], 0xffff96ff
cmp byte [edi], 9
jne 0x508292
mov dword [esi + 0x170], 0xffffeb96
cmp byte [edi], 0xa
jne 0x5082a1
mov dword [esi + 0x170], 0xffd27300
cmp byte [edi], 3
jne 0x5082b0
mov dword [esi + 0x170], 0xffffff96
cmp byte [edi], 4
jne 0x5082bf
mov dword [esi + 0x170], 0xff96ffff
cmp byte [edi], 8
jne 0x5082ce
mov dword [esi + 0x170], 0xffff73c8
cmp byte [edi], 0xb
jne 0x5082dd
mov dword [esi + 0x170], 0xff64ff64
cmp byte [edi], 0xc
jne 0x5082ec
mov dword [esi + 0x170], 0xff32ff64
cmp byte [edi], 0xd
jne 0x5082fb
mov dword [esi + 0x170], 0xff00ff64
cmp byte [edi], 0xf
jne 0x50830a
mov dword [esi + 0x170], 0xff3264ff
cmp byte [edi], 0x10
jne 0x508319
mov dword [esi + 0x170], 0xff969637
cmp byte [edi], 0x11
jne 0x508328
mov dword [esi + 0x170], 0xffff9637
cmp byte [edi], 0x14
jne 0x508337
mov dword [esi + 0x170], 0xffff9637
cmp byte [edi], 0x12
jne 0x508346
mov dword [esi + 0x170], 0xffffb437
cmp byte [edi], 0x13
jne 0x508355
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 0x508401
cmp byte [edi], 0
jne 0x508387
mov byte [ebp - 0x410], 0
jmp 0x5083ed
mov ecx, dword [ebp + ebx*4 - 0x4d4]
cvttsd2si eax, qword [ebp + ebx*8 - 0x478]
cmp ecx, 1
jle 0x5083c6
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 0x5083ed
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 0x5081c0
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.0055ee88
mov esp, ebp
pop ebp
ret 8