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

Disassembly:
push 0x658
mov eax, 0x664bd3
call fcn.006098ec
mov esi, ecx
and dword [ebp - 4], 0
wait
push dword [0x735a40]
push dword [0x735a3c]
push dword [0x735a38]
lea ecx, [ebp - 0x5c0]
call fcn.0043fa88
mov edi, dword [ebp + 0x10]
push edi
mov ecx, esi
call fcn.0047a3ff
mov dword [ebp - 0x570], eax
test eax, eax
je 0x4d2c99
test esi, esi
je 0x4d25d5
add esi, 0xfffffc14
jmp 0x4d25d7
xor esi, esi
mov dword [ebp - 0x544], esi
xor ecx, ecx
mov dword [ebp - 0x55c], ecx
mov eax, dword [0x736854]
sub eax, dword [0x736850]
cdq
mov esi, 0xb0
idiv esi
cmp ecx, eax
jae 0x4d2c99
imul ebx, ecx, 0xb0
mov eax, dword [0x736850]
cmp dword [ebx + eax], edi
jne 0x4d2c93
push 3
sub esp, 0x2c
push 0xb
pop ecx
lea esi, [ebp - 0x5c0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x78]
add ecx, ebx
call fcn.004a9236
test al, al
je 0x4d2c8a
mov eax, dword [0x736850]
add eax, ebx
push eax
lea ecx, [ebp - 0x664]
call fcn.004465c5
mov eax, dword [0x736850]
add eax, 0xa4
add eax, ebx
push eax
lea ecx, [ebp - 0x554]
call fcn.0043e5b5
mov eax, dword [ebp - 0x550]
sub eax, dword [ebp - 0x554]
cdq
push 0x50
pop ecx
idiv ecx
mov esi, eax
test esi, esi
je 0x4d2c74
mov edi, dword [ebp - 0x570]
add edi, 8
push str.card_caipiao_title
mov ecx, edi
call fcn.005d83b1
test eax, eax
je 0x4d26a5
mov edx, dword [eax]
push dword [ebp - 0x65c]
mov ecx, eax
call dword [edx + 0x3c]
push str.card_caipiao_list
mov ecx, edi
call fcn.005d83b1
and dword [ebp - 0x564], 0
test eax, eax
je 0x4d26e9
lea ebx, [eax - 8]
mov dword [ebp - 0x564], ebx
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
lea ecx, [ebx + 8]
imul esi, esi, 0x50
mov eax, dword [ecx]
push esi
call dword [eax + 0xf8]
mov edx, dword [edi]
lea eax, [esi + 0x34]
push eax
mov ecx, edi
call dword [edx + 0xf8]
xor ebx, ebx
mov dword [ebp - 0x56c], ebx
mov eax, dword [ebp - 0x550]
mov esi, dword [ebp - 0x554]
sub eax, esi
cdq
push 0x50
pop ecx
idiv ecx
cmp ebx, eax
jae 0x4d2c74
lea ecx, [ebp - 0x534]
call fcn.005f9ef3
push 0
push 0
mov eax, dword [ebp - 0x544]
lea ecx, [eax + 0x20]
mov dword [ebp - 0x558], ecx
push ecx
mov ecx, eax
add eax, 0x18
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 0
push ecx
mov eax, esp
mov dword [eax], str.IDX_Card_Caipiao_Item
lea ecx, [ebp - 0x534]
call fcn.005faa05
test eax, eax
je 0x4d2757
lea edi, [eax - 8]
jmp 0x4d2759
xor edi, edi
mov dword [ebp - 0x568], edi
call fcn.00418f81
push eax
lea ecx, [ebp - 0x560]
call fcn.0041775d
imul ebx, ebx, 0x50
mov dword [ebp - 0x538], ebx
push dword [ebx + esi + 0x28]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x634]
movups xmmword [esp], xmm0
push dword [ebx + esi + 0x48]
push str._s__.0f__.0f__s
lea eax, [ebp - 0x560]
push eax
call fcn.0041a1e9
add esp, 0x20
add edi, 8
mov eax, dword [edi]
mov esi, dword [ebp - 0x560]
push esi
mov ecx, edi
call dword [eax + 0x170]
push str.card_caipiao_item_name
mov ecx, edi
call fcn.005d83b1
test eax, eax
je 0x4d27d8
mov edx, dword [eax]
mov ecx, dword [ebp - 0x554]
push dword [ebx + ecx + 0x28]
mov ecx, eax
call dword [edx + 0x3c]
push str.card_caipiao_item_issue
mov ecx, edi
call fcn.005d83b1
mov ebx, eax
test ebx, ebx
je 0x4d2827
push 0x6c0084
mov eax, dword [ebp - 0x538]
mov ecx, dword [ebp - 0x554]
add eax, 0x30
add ecx, eax
push ecx
lea eax, [ebp - 0x574]
push eax
call fcn.004227e4
add esp, 0xc
mov edx, dword [ebx]
push dword [eax]
mov ecx, ebx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x574]
lea ecx, [ecx - 0x10]
call fcn.00419521
push str.card_caipiao_item_date
mov ecx, edi
call fcn.005d83b1
mov ebx, eax
test ebx, ebx
je 0x4d287b
mov eax, dword [ebp - 0x538]
mov edx, dword [ebp - 0x554]
mov ecx, dword [eax + edx + 0x34]
cmp dword [ecx - 0xc], 0
je 0x4d287b
push 5
push 5
lea ecx, [ebp - 0x578]
push ecx
lea ecx, [edx + 0x34]
add ecx, eax
call fcn.004b33ed
mov edx, dword [ebx]
push dword [eax]
mov ecx, ebx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x578]
lea ecx, [ecx - 0x10]
call fcn.00419521
push str.card_caipiao_item_week
mov ecx, edi
call fcn.005d83b1
mov ebx, eax
test ebx, ebx
je 0x4d28e8
push ecx
mov ecx, esp
push 0x6809b0
call fcn.004177e7
mov ecx, dword [ebp - 0x538]
mov eax, dword [ebp - 0x554]
add eax, 0x34
add eax, ecx
push ecx
mov ecx, esp
push eax
call fcn.0043cec9
lea ecx, [ebp - 0x5ec]
call fcn.0043fb2b
lea eax, [ebp - 0x57c]
push eax
lea ecx, [ebp - 0x5ec]
call fcn.0049b896
mov edx, dword [ebx]
push dword [eax]
mov ecx, ebx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x57c]
lea ecx, [ecx - 0x10]
call fcn.00419521
push str.card_caipiao_item_numberlist
mov ecx, edi
call fcn.005d83b1
test eax, eax
je 0x4d2c2e
lea ecx, [eax - 8]
mov dword [ebp - 0x540], ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x584], ebx
mov ecx, dword [ebp - 0x538]
mov edx, dword [ebp - 0x554]
mov eax, dword [ecx + edx + 4]
sub eax, dword [ecx + edx]
sar eax, 2
cmp ebx, eax
jae 0x4d2a09
lea ecx, [ebp - 0x15c]
call fcn.005f9ef3
push edi
push edi
push dword [ebp - 0x558]
mov eax, dword [ebp - 0x544]
mov ecx, eax
add eax, 0x18
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push edi
push ecx
mov eax, esp
mov dword [eax], str.IDX_Card_Caipiao_Item_Number
lea ecx, [ebp - 0x15c]
call fcn.005faa05
test eax, eax
je 0x4d2975
add eax, 0xfffffff8
jmp 0x4d2977
mov eax, edi
mov dword [ebp - 0x53c], eax
lea ecx, [eax + 8]
mov dword [ebp - 0x548], ecx
push str.card_caipiao_item_numbervalue
call fcn.005d83b1
mov edi, eax
test edi, edi
je 0x4d29cd
mov eax, dword [ebp - 0x538]
mov ecx, dword [ebp - 0x554]
mov ecx, dword [eax + ecx]
push dword [ecx + ebx*4]
lea eax, [ebp - 0x580]
push eax
call fcn.004b576d
pop ecx
pop ecx
mov edx, dword [edi]
push dword [eax]
mov ecx, edi
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x580]
lea ecx, [ecx - 0x10]
call fcn.00419521
mov eax, dword [ebp - 0x540]
mov edi, dword [eax]
mov ecx, eax
call dword [edi + 0xc]
push eax
xor ecx, ecx
cmp dword [ebp - 0x53c], ecx
mov eax, dword [ebp - 0x548]
cmove eax, ecx
push eax
mov ecx, dword [ebp - 0x540]
call dword [edi + 0x14]
lea ecx, [ebp - 0x15c]
call fcn.005c29b5
inc ebx
xor edi, edi
jmp 0x4d290e
mov ebx, edi
mov dword [ebp - 0x58c], ebx
mov eax, dword [ecx + edx + 0x10]
sub eax, dword [ecx + edx + 0xc]
sar eax, 2
cmp ebx, eax
jae 0x4d2b29
lea ecx, [ebp - 0x2a4]
call fcn.005f9ef3
push edi
push edi
push dword [ebp - 0x558]
mov eax, dword [ebp - 0x544]
mov ecx, eax
add eax, 0x18
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push edi
push ecx
mov eax, esp
mov dword [eax], str.IDX_Card_Caipiao_Item_Number
lea ecx, [ebp - 0x2a4]
call fcn.005faa05
test eax, eax
je 0x4d2a67
add eax, 0xfffffff8
jmp 0x4d2a69
mov eax, edi
mov dword [ebp - 0x53c], eax
lea ecx, [eax + 8]
mov dword [ebp - 0x548], ecx
push str.card_caipiao_item_numbervalue
call fcn.005d83b1
mov edi, eax
test edi, edi
je 0x4d2adb
mov eax, dword [ebp - 0x538]
mov ecx, dword [ebp - 0x554]
mov ecx, dword [eax + ecx + 0xc]
push dword [ecx + ebx*4]
lea eax, [ebp - 0x588]
push eax
call fcn.004b576d
pop ecx
pop ecx
mov edx, dword [edi]
push dword [eax]
mov ecx, edi
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x588]
lea ecx, [ecx - 0x10]
call fcn.00419521
mov eax, dword [edi]
push str.IDB_Card_Caipiao_Numberbg_Blue
mov ecx, edi
call dword [eax + 0x84]
mov eax, dword [edi]
push 0x2f73c9
mov ecx, edi
call dword [eax + 0x54]
mov eax, dword [ebp - 0x540]
mov edi, dword [eax]
mov ecx, eax
call dword [edi + 0xc]
push eax
xor ecx, ecx
cmp dword [ebp - 0x53c], ecx
mov eax, dword [ebp - 0x548]
cmove eax, ecx
push eax
mov ecx, dword [ebp - 0x540]
call dword [edi + 0x14]
lea ecx, [ebp - 0x2a4]
call fcn.005c29b5
inc ebx
mov dword [ebp - 0x58c], ebx
mov ecx, dword [ebp - 0x538]
mov edx, dword [ebp - 0x554]
xor edi, edi
jmp 0x4d2a11
mov ebx, edi
mov dword [ebp - 0x594], ebx
mov eax, dword [ecx + edx + 0x1c]
sub eax, dword [ecx + edx + 0x18]
sar eax, 2
cmp ebx, eax
jae 0x4d2c2e
lea ecx, [ebp - 0x3ec]
call fcn.005f9ef3
push edi
push edi
push dword [ebp - 0x558]
mov eax, dword [ebp - 0x544]
mov ecx, eax
add eax, 0x18
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push edi
push ecx
mov eax, esp
mov dword [eax], str.IDX_Card_Caipiao_Item_Number
lea ecx, [ebp - 0x3ec]
call fcn.005faa05
test eax, eax
je 0x4d2b87
add eax, 0xfffffff8
jmp 0x4d2b89
mov eax, edi
mov dword [ebp - 0x53c], eax
lea ecx, [eax + 8]
mov dword [ebp - 0x548], ecx
push str.card_caipiao_item_numbervalue
call fcn.005d83b1
mov edi, eax
test edi, edi
je 0x4d2be0
mov eax, dword [ebp - 0x538]
mov ecx, dword [ebp - 0x554]
mov ecx, dword [eax + ecx + 0x18]
push dword [ecx + ebx*4]
lea eax, [ebp - 0x590]
push eax
call fcn.004b576d
pop ecx
pop ecx
mov edx, dword [edi]
push dword [eax]
mov ecx, edi
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x590]
lea ecx, [ecx - 0x10]
call fcn.00419521
mov eax, dword [ebp - 0x540]
mov edi, dword [eax]
mov ecx, eax
call dword [edi + 0xc]
push eax
xor ecx, ecx
cmp dword [ebp - 0x53c], ecx
mov eax, dword [ebp - 0x548]
cmove eax, ecx
push eax
mov ecx, dword [ebp - 0x540]
call dword [edi + 0x14]
lea ecx, [ebp - 0x3ec]
call fcn.005c29b5
inc ebx
mov dword [ebp - 0x594], ebx
mov ecx, dword [ebp - 0x538]
mov edx, dword [ebp - 0x554]
xor edi, edi
jmp 0x4d2b31
mov ebx, dword [ebp - 0x564]
test ebx, ebx
je 0x4d2c55
mov edi, dword [ebx]
mov ecx, ebx
call dword [edi + 0xc]
push eax
mov ecx, dword [ebp - 0x568]
lea eax, [ecx + 8]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call dword [edi + 0x14]
lea ecx, [esi - 0x10]
call fcn.00419521
lea ecx, [ebp - 0x534]
call fcn.005c29b5
mov ebx, dword [ebp - 0x56c]
inc ebx
jmp 0x4d26eb
lea ecx, [ebp - 0x554]
call fcn.0050e640
lea ecx, [ebp - 0x664]
call fcn.0044947a
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x55c]
inc ecx
jmp 0x4d25df
wait
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
call fcn.00609839
ret 0x10