Function at 0x501b90
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c75c7
mov eax, dword fs:[0]
push eax
sub esp, 0x6cc
mov eax, dword [0x6287a8]
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.0055644a
add esp, 4
mov dword [ebp - 0x6c4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x501bff
push 0x286
mov ecx, eax
call fcn.00448260
mov ebx, eax
mov dword [ebp - 0x6cc], eax
jmp 0x501c07
xor ebx, ebx
mov dword [ebp - 0x6cc], ebx
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004487a0
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.004482c0
lea eax, [ebp - 0x69d]
mov ecx, ebx
push eax
call fcn.004482c0
mov al, byte [ebp - 0x69d]
mov ecx, ebx
mov byte [ebp - 0x41c], al
lea eax, [ebp - 0x69d]
push eax
call fcn.004482c0
cmp byte [ebp - 0x41c], 0
mov al, byte [ebp - 0x69d]
mov byte [ebp - 0x413], al
je 0x501c97
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.004482a0
mov eax, dword [ebp - 0x6bc]
cmp byte [eax], 0xff
jne 0x501cfe
mov byte [ebp + esi - 0x697], 0
jmp 0x501e72
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.004482a0
cmp byte [esi], 0
je 0x501d36
inc ebx
cmp ebx, 0x3e8
jl 0x501d10
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.00448360
push esi
mov ecx, ebx
call fcn.00448360
lea eax, [esi - 0x2c]
mov ecx, ebx
push eax
call fcn.00448360
mov ecx, dword [ebp - 0x6bc]
movsx eax, byte [ecx]
dec eax
cmp eax, 0xd
ja case.0x501d7d.4
movzx eax, byte [eax + 0x502c90]
jmp dword [eax*4 + 0x502c78]
lea eax, [ebp - 0x6b4]
mov ecx, ebx
push eax
call fcn.00448360
movd xmm0, dword [ebp - 0x6b4]
cvtdq2ps xmm0, xmm0
movss dword [edi], xmm0
lea eax, [ebp - 0x6b4]
mov ecx, ebx
push eax
call fcn.00448360
movd xmm0, dword [ebp - 0x6b4]
jmp 0x501e57
lea eax, [ebp - 0x6b8]
mov ecx, ebx
push eax
call fcn.00448320
movd xmm0, dword [ebp - 0x6b8]
cvtdq2ps xmm0, xmm0
movss dword [edi], xmm0
jmp 0x501e41
lea eax, [ebp - 0x6d0]
mov ecx, ebx
push eax
call fcn.00448380
mov eax, dword [ebp - 0x6d0]
mov ecx, ebx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5cf230]
lea eax, [ebp - 0x6d8]
push eax
cvtpd2ps xmm0, xmm0
movss dword [edi], xmm0
call fcn.00448570
mov edx, dword [ebp - 0x6d4]
mov ecx, dword [ebp - 0x6d8]
call fcn.00556830
jmp 0x501e5d
push edi
mov ecx, ebx
call fcn.004483a0
jmp 0x501da1
push edi
mov ecx, ebx
call fcn.004483a0
lea eax, [ebp - 0x6b8]
mov ecx, ebx
push eax
call fcn.00448320
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 0x501cd0
lea eax, [ebp - 0x4a8]
mov ecx, ebx
push eax
call fcn.00448360
lea eax, [ebp - 0x41b]
mov ecx, ebx
push eax
call fcn.00448550
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00448320
mov ecx, ebx
call fcn.00448290
push 0x14
push ebx
call fcn.0055647a
mov edi, dword [ebp - 0x6c0]
add esp, 8
cmp byte [ebp - 0x41c], 0
je 0x5025cc
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 0x501fd2
push 0x22
add ecx, 0x140
call fcn.0044df00
push 0x5cfad4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, dword [esi + 0x2c0]
push 0x23
add ecx, 0x140
call fcn.0044df00
push 0x5cfad4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, dword [esi + 0x2c0]
push 0x1c
add ecx, 0x140
call fcn.0044df00
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.0043d360
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 0x50201b
cmp eax, 0xc9
jne 0x501fe1
mov eax, dword [esi + 0x144]
jmp 0x501ff6
cmp eax, 0xca
jne 0x501ff0
mov eax, dword [esi + 0x148]
jmp 0x501ff6
mov eax, dword [esi + 0x140]
mov dword [ecx + 0x164], eax
mov ecx, dword [esi + 0x2c0]
push 0x1c
add ecx, 0x140
call fcn.0044df00
push 0x5cfad4
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.0044df00
cmp byte [ebx], 0
mov esi, eax
jne 0x502065
mov byte [ebp - 0x410], 0
jmp 0x50209e
mov eax, dword [ebp + edi*4 - 0x4d4]
cmp eax, 1
jle 0x502089
push eax
push ebx
lea eax, [ebp - 0x410]
push str._s___ld_
push eax
call fcn.0043d360
add esp, 0x10
jmp 0x50209e
push ebx
lea eax, [ebp - 0x410]
push 0x5d00e0
push eax
call fcn.0043d360
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 0x5020ca
mov dword [esi + 0x170], 0xff96ff96
cmp byte [ebp + edi - 0x537], 1
jne 0x5020de
mov dword [esi + 0x170], 0xffff9696
cmp byte [ebp + edi - 0x537], 0xe
jne 0x5020f2
mov dword [esi + 0x170], 0xff9696ff
cmp byte [ebp + edi - 0x537], 2
jne 0x502106
mov dword [esi + 0x170], 0xffff96ff
cmp byte [ebp + edi - 0x537], 9
jne 0x50211a
mov dword [esi + 0x170], 0xffffeb96
cmp byte [ebp + edi - 0x537], 0xa
jne 0x50212e
mov dword [esi + 0x170], 0xffd27300
cmp byte [ebp + edi - 0x537], 3
jne 0x502142
mov dword [esi + 0x170], 0xffffff96
cmp byte [ebp + edi - 0x537], 4
jne 0x502156
mov dword [esi + 0x170], 0xff96ffff
cmp byte [ebp + edi - 0x537], 8
jne 0x50216a
mov dword [esi + 0x170], 0xffff73c8
cmp byte [ebp + edi - 0x537], 0xb
jne 0x50217e
mov dword [esi + 0x170], 0xff64ff64
cmp byte [ebp + edi - 0x537], 0xc
jne 0x502192
mov dword [esi + 0x170], 0xff32ff64
cmp byte [ebp + edi - 0x537], 0xd
jne 0x5021a6
mov dword [esi + 0x170], 0xff00ff64
cmp byte [ebp + edi - 0x537], 0xf
jne 0x5021ba
mov dword [esi + 0x170], 0xff3264ff
cmp byte [ebp + edi - 0x537], 0x10
jne 0x5021ce
mov dword [esi + 0x170], 0xff969637
cmp byte [ebp + edi - 0x537], 0x11
jne 0x5021e2
mov dword [esi + 0x170], 0xffff9637
cmp byte [ebp + edi - 0x537], 0x14
jne 0x5021f6
mov dword [esi + 0x170], 0xffff9637
cmp byte [ebp + edi - 0x537], 0x12
jne 0x50220a
mov dword [esi + 0x170], 0xffffb437
cmp byte [ebp + edi - 0x537], 0x13
jne 0x50221e
mov dword [esi + 0x170], 0xffffb437
cmp byte [ebp + edi - 0x537], 0x15
jne 0x502232
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 0x5022e1
cmp byte [ebx], 0
mov dword [ebp - 0x69c], eax
jne 0x502272
mov byte [ebp - 0x410], 0
jmp 0x5022cd
mov edx, dword [ebp + edi*4 - 0x4d4]
cvttsd2si eax, qword [ebp + eax - 0x478]
cvttss2si ecx, dword [ebp + edi*4 - 0x4a4]
cmp edx, 1
jle 0x5022aa
push edx
push eax
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d__d___ld_
push eax
call fcn.0043d360
add esp, 0x18
jmp 0x5022cd
push eax
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d__d_
push eax
call fcn.0043d360
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 0x5023ca
cmp byte [ebx], 0
jne 0x50231b
mov byte [ebp - 0x410], 0
lea ecx, [ebp - 0x410]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x5023d0
movsd xmm1, qword [0x5d3e78]
xorps xmm0, xmm0
movlpd qword [ebp - 0x6c8], xmm0
movsd xmm0, qword [eax]
comisd xmm0, xmm1
jb 0x502364
subsd xmm0, xmm1
comisd xmm1, xmm0
jbe 0x502364
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 0x50237c
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x6bc], eax
mov eax, dword [ebp - 0x6c8]
mov dword [ebp - 0x6c0], eax
call fcn.00556780
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.0043d360
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 0x5023d0
mov dword [ebp - 0x69c], eax
cmp byte [ebp + edi - 0x537], 3
jne 0x502412
cmp byte [ebx], 0
jne 0x5023e8
mov byte [ebp - 0x410], 0
jmp 0x502404
push dword [ebp + edi*4 - 0x4d4]
lea eax, [ebp - 0x410]
push ebx
push str._s___d_
push eax
call fcn.0043d360
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 0x5024e4
cmp byte [ebx], 0
jne 0x502431
mov byte [ebp - 0x410], 0
jmp 0x5024d6
mov eax, dword [ebp - 0x69c]
movss xmm2, dword [0x5d0048]
movsd xmm0, qword [eax]
divsd xmm0, qword [0x5e0f00]
mulsd xmm0, qword [0x5e0f18]
cvtpd2ps xmm1, xmm0
comiss xmm2, xmm1
movaps xmm0, xmm1
jbe 0x502467
mulss xmm0, dword [0x5d007c]
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.0043d360
add esp, 0x14
cmp dword [ebp + edi*4 - 0x4d4], 1
jle 0x5024d6
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5024b0
push dword [ebp + edi*4 - 0x4d4]
sub ecx, edx
lea eax, [ebp - 0x410]
add eax, ecx
push 0x5de1dc
push eax
call fcn.0043d360
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 0x5025aa
cmp byte [ebx], 0
jne 0x502503
mov byte [ebp - 0x410], 0
jmp 0x50259c
mov eax, dword [ebp - 0x69c]
movsd xmm1, qword [0x5e0f20]
cvttss2si ecx, dword [ebp + edi*4 - 0x4a4]
movsd xmm0, qword [eax]
ucomisd xmm1, xmm0
lahf
neg ecx
test ah, 0x44
jp 0x502542
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d_
push eax
call fcn.0043d360
add esp, 0x10
jmp 0x50255d
cvttsd2si eax, xmm0
push eax
push ecx
push ebx
lea eax, [ebp - 0x410]
push str._s___d__dc_
push eax
call fcn.0043d360
add esp, 0x14
mov edx, dword [ebp + edi*4 - 0x4d4]
cmp edx, 1
jle 0x50259c
lea ecx, [ebp - 0x410]
lea eax, [ecx + 1]
mov dword [ebp - 0x6c4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x502578
sub ecx, dword [ebp - 0x6c4]
lea eax, [ebp - 0x410]
push edx
add eax, ecx
push 0x5de1dc
push eax
call fcn.0043d360
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 0x502040
jmp 0x502c59
mov al, byte [ebp - 0x413]
cmp al, 6
je 0x5028dd
cmp al, 7
je 0x5028dd
cmp al, 0xb
je 0x5028dd
test al, al
je 0x5028dd
cmp al, 0xc
jne 0x5026a8
mov edi, dword [ebp - 0x6a4]
mov ecx, edi
push 1
call fcn.005038e0
mov ecx, dword [edi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044df00
test eax, eax
jne 0x502642
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2dc]
add ecx, 0x140
call fcn.0044de70
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.0044df00
push dword [ebp - 0x417]
mov esi, eax
lea eax, [ebp - 0x410]
push dword [ebp - 0x41b]
push str.Bank:__lld
push eax
call fcn.0043d360
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 0x5029a8
cmp al, 8
jne 0x5027cb
mov edi, dword [ebp - 0x6a4]
push 0x2e
mov ecx, dword [edi + 0x2b8]
add ecx, 0x140
call fcn.0044df00
test eax, eax
je 0x5026e4
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d0]
add ecx, 0x140
call fcn.0044e210
mov ecx, dword [edi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044df00
test eax, eax
je 0x502712
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2dc]
add ecx, 0x140
call fcn.0044e210
mov ecx, dword [edi + 0x2b8]
push 0x4c
add ecx, 0x140
call fcn.0044df00
test eax, eax
jne 0x50274b
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d8]
add ecx, 0x140
call fcn.0044de70
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.0044df00
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.0043d360
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 0x5029b7
cmp al, 9
jne 0x502c59
mov edi, dword [ebp - 0x6a4]
push 0x2e
mov ecx, dword [edi + 0x2b8]
add ecx, 0x140
call fcn.0044df00
test eax, eax
je 0x502807
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d0]
add ecx, 0x140
call fcn.0044e210
mov ecx, dword [edi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044df00
test eax, eax
je 0x502835
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2dc]
add ecx, 0x140
call fcn.0044e210
mov ecx, dword [edi + 0x2b8]
push 0x3e
add ecx, 0x140
call fcn.0044df00
test eax, eax
jne 0x50286e
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d4]
add ecx, 0x140
call fcn.0044de70
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.0044df00
push dword [ebp - 0x417]
mov esi, eax
lea eax, [ebp - 0x410]
push dword [ebp - 0x41b]
push str.You:__lld
push eax
call fcn.0043d360
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 0x5029b7
mov edi, dword [ebp - 0x6a4]
mov ecx, edi
push 1
call fcn.005038e0
mov ecx, dword [edi + 0x2b8]
push 0x2e
add ecx, 0x140
call fcn.0044df00
test eax, eax
jne 0x502925
mov ecx, dword [edi + 0x2b8]
push dword [edi + 0x2d0]
add ecx, 0x140
call fcn.0044de70
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.0044df00
mov esi, eax
movsx eax, byte [ebp - 0x413]
cmp eax, 0xc
ja case.0x502959.1
movzx ecx, byte [eax + 0x502cb8]
jmp dword [ecx*4 + 0x502ca0]
mov edx, dword [esi]
mov ecx, esi
push str.Trader
call dword [edx + 0x30]
jmp 0x502996
push str.Trainer
jmp 0x50298f
push str.Tower_Chest
jmp 0x50298f
push str.Ground
jmp 0x50298f
push str.Account_Storage
jmp 0x50298f
push 0x5cfad4
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.0044df00
mov esi, eax
mov eax, dword [ebp - 0x69c]
cmp byte [eax], 0
jne 0x502a18
mov byte [ebp - 0x410], 0
jmp 0x502a5f
mov ecx, dword [ebp + ebx*4 - 0x4d4]
cmp ecx, 1
jle 0x502a43
push ecx
push dword [ebp + ebx*4 - 0x500]
push eax
lea eax, [ebp - 0x410]
push str._s__ldg___ld_
push eax
call fcn.0043d360
add esp, 0x14
jmp 0x502a5f
push dword [ebp + ebx*4 - 0x500]
push eax
lea eax, [ebp - 0x410]
push str._s__ldg
push eax
call fcn.0043d360
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 0x502a86
mov dword [esi + 0x170], 0xff96ff96
cmp byte [edi], 1
jne 0x502a95
mov dword [esi + 0x170], 0xffff9696
cmp byte [edi], 0xe
jne 0x502aa4
mov dword [esi + 0x170], 0xff9696ff
cmp byte [edi], 2
jne 0x502ab3
mov dword [esi + 0x170], 0xffff96ff
cmp byte [edi], 9
jne 0x502ac2
mov dword [esi + 0x170], 0xffffeb96
cmp byte [edi], 0xa
jne 0x502ad1
mov dword [esi + 0x170], 0xffd27300
cmp byte [edi], 3
jne 0x502ae0
mov dword [esi + 0x170], 0xffffff96
cmp byte [edi], 4
jne 0x502aef
mov dword [esi + 0x170], 0xff96ffff
cmp byte [edi], 8
jne 0x502afe
mov dword [esi + 0x170], 0xffff73c8
cmp byte [edi], 0xb
jne 0x502b0d
mov dword [esi + 0x170], 0xff64ff64
cmp byte [edi], 0xc
jne 0x502b1c
mov dword [esi + 0x170], 0xff32ff64
cmp byte [edi], 0xd
jne 0x502b2b
mov dword [esi + 0x170], 0xff00ff64
cmp byte [edi], 0xf
jne 0x502b3a
mov dword [esi + 0x170], 0xff3264ff
cmp byte [edi], 0x10
jne 0x502b49
mov dword [esi + 0x170], 0xff969637
cmp byte [edi], 0x11
jne 0x502b58
mov dword [esi + 0x170], 0xffff9637
cmp byte [edi], 0x14
jne 0x502b67
mov dword [esi + 0x170], 0xffff9637
cmp byte [edi], 0x12
jne 0x502b76
mov dword [esi + 0x170], 0xffffb437
cmp byte [edi], 0x13
jne 0x502b85
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 0x502c31
cmp byte [edi], 0
jne 0x502bb7
mov byte [ebp - 0x410], 0
jmp 0x502c1d
mov ecx, dword [ebp + ebx*4 - 0x4d4]
cvttsd2si eax, qword [ebp + ebx*8 - 0x478]
cmp ecx, 1
jle 0x502bf6
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.0043d360
add esp, 0x1c
jmp 0x502c1d
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.0043d360
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 0x5029f0
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.00556488
mov esp, ebp
pop ebp
ret 8