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

Disassembly:
push 0xffffffffffffffff
push 0x41c7e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push ebp
push esi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str.name__d:dpost__
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x4b0]
mov esi, dword [esp + 0x4ac]
push edi
push esi
call fcn.0040d230
add esp, 0xc
mov ecx, esi
push 0x425c74
call fcn.0041b3f4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x4a0], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x114]
mov byte [esp + 0x4a0], 1
call fcn.004021d0
push str._input_.sname_____________v_s_value___________s______
lea ecx, [esp + 0xd0]
mov byte [esp + 0x4a4], 2
call fcn.004021a0
mov eax, dword [eax + 8]
push 0
push eax
push str._input_.sname_____________v_s_value___________s______
lea ecx, [esp + 0x120]
mov byte [esp + 0x4ac], 3
call fcn.00402350
mov esi, 0x41e484
mov dword [esp + 0xcc], esi
lea ecx, [esp + 0x240]
mov byte [esp + 0x4a0], 4
call fcn.004021d0
push str._promos_:___.______discount_:__d___
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4a4], 5
call fcn.004021a0
mov eax, dword [eax + 8]
push 0
push eax
push str._promos_:___.______discount_:__d___
lea ecx, [esp + 0x24c]
mov byte [esp + 0x4ac], 6
call fcn.00402350
mov dword [esp + 0x98], esi
mov eax, dword [edi]
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x120]
push eax
mov byte [esp + 0x4b0], 7
call fcn.00401ec0
mov eax, dword [edi]
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x250]
mov byte [esp + 0x4b0], 8
call fcn.00401ec0
mov byte [esp + 0x4a0], 9
mov bl, 0x14
mov esi, dword [esp + 0x28]
test esi, esi
jle 0x40dfd6
mov ecx, dword [esp + 0x24]
cmp dword [ecx], 0
je 0x40dfd6
cmp esi, 9
jg 0x40d6c9
or eax, 0xffffffff
jmp 0x40d6cc
mov eax, dword [ecx + 0x24]
cmp esi, 8
jg 0x40d6d6
or edx, 0xffffffff
jmp 0x40d6d9
mov edx, dword [ecx + 0x20]
cmp esi, 8
jg 0x40d6e3
or ecx, 0xffffffff
jmp 0x40d6e6
mov ecx, dword [ecx + 0x20]
sub eax, edx
lea edx, [esp + 0x8c]
push eax
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
mov esi, eax
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
cmp ecx, 5
mov byte [esp + 0x4a0], 0xa
jg 0x40d715
or eax, 0xffffffff
jmp 0x40d718
mov eax, dword [ebp + 0x14]
cmp ecx, 4
jg 0x40d722
or edx, 0xffffffff
jmp 0x40d725
mov edx, dword [ebp + 0x10]
cmp ecx, 4
jg 0x40d72f
or ecx, 0xffffffff
jmp 0x40d732
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0x94]
push ecx
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
push 0x425b70
lea ecx, [esp + 0x60]
push eax
push ecx
mov byte [esp + 0x4ac], 0xb
call sub.MFC42.DLL_operator_1
push esi
lea edx, [esp + 0x8c]
push eax
push edx
mov byte [esp + 0x4ac], 0xc
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4a4], 0xd
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x88]
mov byte [esp + 0x4a0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4a0], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x90]
mov byte [esp + 0x4a0], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov byte [esp + 0x4a0], 9
call sub.MFC42.DLL_CString::CString
push 0x425bec
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d7f9
push 0x425bdc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d80c
push 0x425bcc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d882
cmp dword [esp + 0x28], 3
jg 0x40d818
or ecx, 0xffffffff
jmp 0x40d81f
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [edi]
push 0
push ecx
lea ecx, [esp + 0x108]
push eax
push ecx
lea ecx, [esp + 0x124]
call fcn.00401ec0
mov dword [esp + 0x28], 0
mov ecx, dword [eax + 8]
test ecx, ecx
mov byte [esp + 0x4a0], 0xe
jle 0x40d869
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x40d85c
mov eax, 0x41e480
push 0
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00402100
lea ecx, [esp + 0x100]
mov byte [esp + 0x4a0], 9
call fcn.00401c60
jmp 0x40d6a6
push str.post
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d8a3
push 0x425c74
lea ecx, [esp + 0x14]
call fcn.0041b3f4
push str.buy_param
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40deda
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp ecx, 9
jg 0x40d8cc
or eax, 0xffffffff
jmp 0x40d8cf
mov eax, dword [esi + 0x24]
cmp ecx, 8
jg 0x40d8d9
or edx, 0xffffffff
jmp 0x40d8dc
mov edx, dword [esi + 0x20]
cmp ecx, 8
jg 0x40d8e6
or ecx, 0xffffffff
jmp 0x40d8e9
mov ecx, dword [esi + 0x20]
sub eax, edx
lea edx, [esp + 0x60]
push eax
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
push eax
lea eax, [esp + 0x74]
push str.bundleList_
push eax
mov byte [esp + 0x4ac], 0xf
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4a4], 0x10
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x70]
mov byte [esp + 0x4a0], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x4a0], 9
call sub.MFC42.DLL_CString::CString
push 0x425ba8
push 0x425ba4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
push 0x425ba0
lea ecx, [esp + 0x18]
call fcn.0041b3f4
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x4a0], 0x11
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a0], 0x12
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x4a0], 0x13
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x4a0], bl
test ecx, ecx
jle 0x40de34
mov esi, dword [esp + 0x40]
cmp dword [esi], 0
je 0x40de34
cmp ecx, 7
jg 0x40d9cc
or eax, 0xffffffff
jmp 0x40d9cf
mov eax, dword [esi + 0x1c]
cmp ecx, 6
jg 0x40d9d9
or edx, 0xffffffff
jmp 0x40d9dc
mov edx, dword [esi + 0x18]
cmp ecx, 6
jg 0x40d9e6
or ecx, 0xffffffff
jmp 0x40d9e9
mov ecx, dword [esi + 0x18]
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4a4], 0x15
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x78]
mov byte [esp + 0x4a0], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp ecx, 5
jg 0x40da30
or eax, 0xffffffff
jmp 0x40da33
mov eax, dword [esi + 0x14]
cmp ecx, 4
jg 0x40da3d
or edx, 0xffffffff
jmp 0x40da40
mov edx, dword [esi + 0x10]
cmp ecx, 4
jg 0x40da4a
or ecx, 0xffffffff
jmp 0x40da4d
mov ecx, dword [esi + 0x10]
sub eax, edx
lea edx, [esp + 0x80]
push eax
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4a4], 0x16
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x80]
mov byte [esp + 0x4a0], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebp, eax
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, 3
jg 0x40daa3
or ecx, 0xffffffff
jmp 0x40daaa
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0xc]
mov eax, dword [edi]
push 0
push ecx
lea edx, [esp + 0xf4]
push eax
push edx
lea ecx, [esp + 0x250]
call fcn.00401ec0
mov dword [esp + 0x44], 0
mov ecx, dword [eax + 8]
test ecx, ecx
mov byte [esp + 0x4a0], 0x17
jle 0x40daf4
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x40dae7
mov eax, 0x41e480
push 0
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00402100
mov byte [esp + 0x4a0], bl
lea ecx, [esp + 0xec]
call fcn.00401c60
mov esi, dword [esp + 0x44]
test esi, esi
jle 0x40dc72
mov ecx, dword [esp + 0x40]
cmp dword [ecx], 0
je 0x40dc72
cmp esi, 7
jg 0x40db2a
or eax, 0xffffffff
jmp 0x40db2d
mov eax, dword [ecx + 0x1c]
cmp esi, 6
jg 0x40db37
or edx, 0xffffffff
jmp 0x40db3a
mov edx, dword [ecx + 0x18]
cmp esi, 6
jg 0x40db44
or ecx, 0xffffffff
jmp 0x40db47
mov ecx, dword [ecx + 0x18]
sub eax, edx
push eax
lea eax, [esp + 0x70]
push ecx
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x4a4], 0x18
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x6c]
mov byte [esp + 0x4a0], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp ecx, 5
jg 0x40db8b
or eax, 0xffffffff
jmp 0x40db8e
mov eax, dword [esi + 0x14]
cmp ecx, 4
jg 0x40db98
or edx, 0xffffffff
jmp 0x40db9b
mov edx, dword [esi + 0x10]
cmp ecx, 4
jg 0x40dba5
or ecx, 0xffffffff
jmp 0x40dba8
mov ecx, dword [esi + 0x10]
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x8c]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a4], 0x19
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x84]
mov byte [esp + 0x4a0], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp ebp, eax
jge 0x40dc02
mov ebp, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
cmp dword [esp + 0x44], 3
jg 0x40dc0e
or ecx, 0xffffffff
jmp 0x40dc15
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0xc]
mov eax, dword [edi]
push 0
push ecx
lea edx, [esp + 0xe0]
push eax
push edx
lea ecx, [esp + 0x250]
call fcn.00401ec0
mov dword [esp + 0x44], 0
mov ecx, dword [eax + 8]
test ecx, ecx
mov byte [esp + 0x4a0], 0x1a
jle 0x40dc5f
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x40dc52
mov eax, 0x41e480
push 0
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00402100
mov byte [esp + 0x4a0], bl
lea ecx, [esp + 0xd8]
jmp 0x40db02
push str._:_once_:false__unused_:_________
lea ecx, [esp + 0x20]
call fcn.0041b3f4
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x36c]
call fcn.004021d0
push esi
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4a4], 0x1b
call fcn.004021a0
mov eax, dword [eax + 8]
push 0
push eax
push esi
lea ecx, [esp + 0x378]
mov byte [esp + 0x4ac], 0x1c
call fcn.00402350
mov dword [esp + 0x98], 0x41e484
mov eax, dword [edi]
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x378]
push eax
mov byte [esp + 0x4b0], 0x1d
call fcn.00401ec0
mov ecx, dword [esp + 0xac]
mov byte [esp + 0x4a0], 0x1e
test ecx, ecx
jle 0x40dd67
mov esi, dword [esp + 0xa8]
cmp dword [esi], 0
je 0x40dd67
cmp ecx, 5
jg 0x40dd17
or eax, 0xffffffff
jmp 0x40dd1a
mov eax, dword [esi + 0x14]
cmp ecx, 4
jg 0x40dd24
or edx, 0xffffffff
jmp 0x40dd27
mov edx, dword [esi + 0x10]
cmp ecx, 4
jg 0x40dd31
or ecx, 0xffffffff
jmp 0x40dd34
mov ecx, dword [esi + 0x10]
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a4], 0x1f
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x74]
mov byte [esp + 0x4a0], 0x1e
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push 0x425b70
lea eax, [esp + 0x98]
push edx
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x7c]
push ecx
push eax
push edx
mov byte [esp + 0x4ac], 0x20
call sub.MFC42.DLL_operator_2
push 0x425300
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x4a8], 0x21
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4a4], 0x22
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x54]
mov byte [esp + 0x4a0], 0x21
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4a0], 0x20
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x94]
mov byte [esp + 0x4a0], 0x1e
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xa4], 0x41e47c
test eax, eax
je 0x40de16
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x36c]
mov dword [esp + 0xa4], 0x41e478
mov byte [esp + 0x4a0], bl
call fcn.00401d90
mov esi, dword [esp + 0x4a8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x6c]
push esi
push edx
call sub.MFC42.DLL_operator_2
push 0x425300
push eax
lea eax, [esp + 0x6c]
mov byte [esp + 0x4a8], 0x23
push eax
call sub.MFC42.DLL_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x4a4], 0x24
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x64]
mov byte [esp + 0x4a0], 0x23
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0x4a0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4a0], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a0], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x4a0], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x4a0], 9
call sub.MFC42.DLL_CString::CString
jmp 0x40dee1
mov esi, dword [esp + 0x4a8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x50]
push ecx
push esi
push edx
call sub.MFC42.DLL_operator_2
push 0x425300
push eax
lea eax, [esp + 0x60]
mov byte [esp + 0x4a8], 0x25
push eax
call sub.MFC42.DLL_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x4a4], 0x26
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x58]
mov byte [esp + 0x4a0], 0x25
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x4a0], 9
call sub.MFC42.DLL_CString::CString
cmp dword [esp + 0x28], 3
jg 0x40df47
or ecx, 0xffffffff
jmp 0x40df4e
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0xc]
mov eax, dword [edi]
push 0
push ecx
lea edx, [esp + 0xc0]
push eax
push edx
lea ecx, [esp + 0x124]
call fcn.00401ec0
xor esi, esi
mov byte [esp + 0x4a0], 0x27
mov dword [esp + 0x28], esi
mov ecx, dword [eax + 8]
test ecx, ecx
jle 0x40df9a
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x40df89
mov eax, 0x41e480
push 0
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00402100
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0xc4]
mov byte [esp + 0x4a0], 9
test eax, eax
mov dword [esp + 0xb8], 0x41e47c
je 0x40dfc6
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0xb8], 0x41e478
jmp 0x40d6aa
mov eax, dword [esp + 0x48]
mov ebx, 0x41e47c
test eax, eax
mov dword [esp + 0x3c], ebx
je 0x40dff5
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x40dffb
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x2c]
mov edi, 0x41e478
test eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], ebx
je 0x40e016
push eax
call esi
add esp, 4
lea ecx, [esp + 0x240]
mov dword [esp + 0x20], edi
mov byte [esp + 0x4a0], 4
call fcn.00401d90
lea ecx, [esp + 0x114]
mov byte [esp + 0x4a0], 0x2e
call fcn.00402300
mov eax, dword [esp + 0x198]
mov dword [esp + 0x1a0], 0x41e484
test eax, eax
mov dword [esp + 0x18c], 0x41e4ac
je 0x40e069
push eax
call esi
add esp, 4
lea ecx, [esp + 0x178]
mov dword [esp + 0x18c], 0x41e4a8
mov byte [esp + 0x4a0], 0x2b
call fcn.00401d20
lea ecx, [esp + 0x164]
mov byte [esp + 0x4a0], 0x2a
call fcn.00401cc0
lea ecx, [esp + 0x150]
mov byte [esp + 0x4a0], 0x29
call fcn.00401cf0
lea ecx, [esp + 0x13c]
mov byte [esp + 0x4a0], 0x28
call fcn.00401c90
lea ecx, [esp + 0x128]
mov byte [esp + 0x4a0], 1
call fcn.00401c90
lea ecx, [esp + 0x14]
mov byte [esp + 0x4a0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x4a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x498]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x494
ret