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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48c50c
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x94
cmp eax, 0x12
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x42a23f
lea edi, [esi + 0x437c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x429543
push eax
push eax
push 0xa0
mov ecx, esi
call fcn.0043fc10
jmp 0x42a23f
mov eax, dword [esi + 0x4394]
test eax, eax
je 0x429562
push 0
push 0
push 0x182
mov ecx, esi
call fcn.0043fc10
jmp 0x42a23f
mov eax, dword [esp + 0xb4]
mov cx, word [eax]
add eax, 2
mov edx, eax
cmp cx, 0x3e8
mov dword [esp + 0x10], ecx
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
mov edi, dword [edx + 8]
mov dword [esp + 0x24], edi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x28], edx
jb 0x4295ad
mov ecx, dword [esi + 0x4168]
and ecx, 0x800
mov dword [esp + 0x54], ecx
je 0x42a23f
test eax, eax
je 0x42a23f
mov ecx, dword [esi + 0x4504]
call fcn.004445a0
mov eax, dword [eax + 0x18]
test eax, eax
mov dword [esp + 0x54], eax
je 0x42a23f
movsx edx, word [esi + 0x3802]
movsx eax, word [esi + 0x3800]
mov ecx, dword [esi + 0x4504]
push edx
push eax
add ecx, 0x323c
call fcn.00486430
mov ebx, dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetFirstWord_class_CString___char_const___char___int_]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
cmp eax, 0xffffffff
je 0x4296dd
mov ecx, dword [esi + 0x4504]
push eax
add ecx, 0x325c
call fcn.00404d10
test eax, eax
je 0x4296dd
cmp dword [eax], 0x12
jne 0x4296dd
mov ecx, dword [esi + 0x44ec]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [ecx + 8]
cmp eax, edi
mov dword [esp + 0x38], eax
jbe 0x42a23f
push 0
push edi
mov ecx, esi
call fcn.00410560
test eax, eax
je 0x4296c4
mov edx, dword [esi + 0x21b4]
lea ecx, [esp + 0x2c]
mov eax, dword [edx + edi*4]
push eax
push edi
push ecx
mov ecx, dword [esi + 0x44ec]
call fcn.00405d40
push 1
push 0
lea edx, [esp + 0x34]
push 0x49b09c
lea eax, [esp + 0x24]
push edx
push eax
mov dword [esp + 0xc0], 0
call ebx
mov ecx, dword [esp + 0x2c]
push str.BuyItem
push ecx
call ebp
add esp, 0x1c
test eax, eax
jne 0x4296a7
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x18]
call fcn.00489b20
lea ecx, [esp + 0x2c]
mov dword [esp + 0xac], 0xffffffff
call fcn.00489b20
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
jb 0x429643
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42a23f
mov ebx, dword [esi + 0x4518]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x1c]
add ebx, 0x38
and edi, 0xffff
push edx
push edi
mov ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], edi
call fcn.00487550
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x38], ebp
jl 0x42a23f
mov eax, dword [esp + 0x10]
cmp ax, 0x321
jb 0x429763
cmp ax, 0x324
ja 0x429763
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push edi
call fcn.00487990
cmp eax, 1
jne 0x429763
mov ecx, dword [esi + 0x42c8]
push 0x20
lea edx, [esi + 0x37d8]
push ecx
push edx
mov ecx, esi
call fcn.004120f0
test eax, eax
jne 0x429763
push eax
push eax
push 0x101
mov ecx, esi
call fcn.0043fc10
jmp 0x42a23f
lea eax, [esp + 0x58]
push 1
lea ecx, [esp + 0x68]
push eax
push ecx
push ebp
push edi
mov ecx, ebx
call fcn.004872b0
test eax, eax
je 0x42a23f
mov eax, dword [esi + 0x4554]
mov ebx, dword [esp + 0x58]
xor ebp, ebp
cdq
push ebp
push ebx
push edx
push eax
call fcn.0048a1c0
push ebp
push 0x64
push edx
push eax
call fcn.0048a110
mov edi, eax
add edi, ebx
adc edx, ebp
mov dword [esp + 0x34], edx
js 0x4297c5
jg 0x4297b6
cmp edi, 0xee6b2800
jbe 0x4297c5
mov edi, 0xee6b2800
mov dword [esp + 0x34], 0
jmp 0x4297d6
test edi, edi
jne 0x4297d6
cmp word [esp + 0x10], 0x3e8
jb 0x42a23f
mov edx, dword [esi + 0x4504]
call dword [sym.imp.rm3944.dll_NewMapFix5]
cmp eax, 0x5d
jl 0x4297ec
cmp eax, 0x6c
jle 0x4297fa
cmp eax, 0x89
jl 0x429801
cmp eax, 0xb0
jg 0x429801
mov eax, 1
jmp 0x429803
xor eax, eax
cmp word [esp + 0x10], 0x23
mov dword [esp + 0x40], eax
jne 0x42995a
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push 0x23
call fcn.004873a0
test eax, eax
je 0x42a23f
cmp eax, dword [esp + 0x20]
jae 0x429835
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.0040b700
mov eax, dword [eax + 0x40]
mov ebx, dword [sym.imp.rmDB.dll_public:_unsigned_long_int___thiscall_CSpecialItem::GetUserWindowItemCount_char_const___int__int__int_]
push 0xc8
lea ebp, [esi + 0x37d8]
push 6
push 1
push ebp
mov ecx, eax
call ebx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0040b700
mov eax, dword [eax + 0x40]
push 0xc8
push 6
push 3
push ebp
mov ecx, eax
call ebx
mov ecx, esi
call fcn.0040b700
mov eax, dword [eax + 0x40]
push 0xc8
push 6
push 3
push ebp
mov ecx, eax
call ebx
mov edx, edi
mov ecx, dword [esp + 0x18]
imul edx, dword [esp + 0x20]
add ecx, eax
cmp edx, ecx
jbe 0x4298b3
push 0
push 0
push 0x1ad
mov ecx, esi
call fcn.0043fc10
jmp 0x42a23f
mov ecx, dword [esi + 0x4504]
add ecx, 0x32e8
je 0x42a23f
movsx eax, word [esp + 0x1e]
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.00484e80
test eax, eax
je 0x42a23f
mov ecx, dword [esi + 0x42f4]
mov ebx, dword [eax + 0x4c]
cmp ecx, ebx
jae 0x4298fc
push 0
push 0
push 0xc
mov ecx, esi
call fcn.0043fc10
jmp 0x42a23f
mov eax, ebx
imul eax, dword [esp + 0x20]
cmp ecx, eax
jae 0x429911
mov eax, ecx
xor edx, edx
div ebx
mov dword [esp + 0x20], eax
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
push 1
call fcn.00431a60
mov bl, al
lea eax, [esp + 0x1c]
push eax
push 3
mov ecx, esi
mov byte [esp + 0x3c], bl
mov dword [esp + 0x38], 1
call fcn.00431a60
cmp bl, 0xff
mov byte [esp + 0x60], al
mov ebp, 3
jne 0x4299e4
cmp al, bl
je 0x42a23f
jmp 0x4299e8
test eax, eax
jne 0x429999
test edi, edi
je 0x429911
mov ecx, dword [esi + 0x3f94]
mov edx, dword [esi + 0x3f90]
push eax
push edi
push ecx
push edx
call fcn.0048a200
mov ebx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, ecx
ja 0x429911
jb 0x429987
cmp eax, ebx
jae 0x429911
push 0
push 0
push 0xb
mov ecx, esi
call fcn.0043fc10
jmp 0x42a23f
test edi, edi
je 0x429911
mov eax, dword [esi + 0x3f9c]
mov ecx, dword [esi + 0x3f98]
push 0
push edi
push eax
push ecx
call fcn.0048a200
mov ebx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, ecx
ja 0x429911
jb 0x4299cf
cmp eax, ebx
jae 0x429911
push 0
push 0
push 0x170
mov ecx, esi
call fcn.0043fc10
jmp 0x42a23f
cmp al, 0xff
je 0x429a02
mov ebx, dword [esp + 0x60]
mov ecx, esi
push ebx
push ebp
call fcn.00431880
cmp byte [eax], 0
je 0x429a02
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push ecx
push ebx
mov ecx, esi
call fcn.00431880
test eax, eax
je 0x429a32
cmp dword [eax + 4], 0xee6b2800
jb 0x429a32
push 0
push 0
push 0xd
mov ecx, esi
call fcn.0043fc10
jmp 0x42a23f
cmp word [esp + 0x10], 0x23
je 0x429f5b
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
push ebx
call fcn.004877b0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42a23f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x34]
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
push 0
push ecx
push edx
push eax
mov ecx, esi
call fcn.00431e40
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x429aaa
push 0
push 0
push 0xc
mov ecx, esi
call fcn.0043fc10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
jbe 0x429ac9
sub ecx, eax
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
push ecx
push ebx
mov ecx, ebp
call fcn.004876f0
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x429f1f
mov eax, dword [esi + 0x449c]
mov ebx, 1
cmp eax, ebx
je 0x429ccd
mov ecx, esi
call fcn.0040b670
test eax, eax
jne 0x429ccd
mov ecx, esi
call fcn.0040b6b0
test eax, eax
jne 0x429ccd
mov al, byte [esp + 0x1c]
cmp al, bl
jne 0x429ba8
mov ax, word [esp + 0x1e]
cmp ax, 0xc8
je 0x429c51
cmp ax, 0xc9
je 0x429c51
cmp ax, 0xd2
je 0x429c51
cmp ax, 0xd3
je 0x429c51
cmp ax, 0xdc
je 0x429c51
cmp ax, 0xdd
je 0x429c51
cmp ax, 0xe6
je 0x429c51
cmp ax, 0xe7
je 0x429c51
cmp ax, 0xf0
je 0x429c51
cmp ax, 0xf1
je 0x429c51
cmp ax, 0x45
je 0x429c51
cmp ax, 0x46
je 0x429c51
cmp ax, 0x91
je 0x429c51
cmp ax, 0x92
je 0x429c51
jmp 0x429ccd
cmp al, 2
jne 0x429bca
mov ax, word [esp + 0x1e]
cmp ax, 0x66
jl 0x429ccd
cmp ax, 0x81
jle 0x429c51
jmp 0x429ccd
cmp al, 3
jne 0x429c08
mov ax, word [esp + 0x1e]
cmp ax, 0x28
je 0x429c51
cmp ax, 0x29
je 0x429c51
cmp ax, 0x2a
je 0x429c51
cmp ax, 0x2b
je 0x429c51
cmp ax, 0x32
je 0x429c51
cmp ax, 0x33
je 0x429c51
cmp ax, 0x34
je 0x429c51
cmp ax, 0x35
je 0x429c51
jmp 0x429ccd
cmp al, 5
jne 0x429ccd
mov ax, word [esp + 0x1e]
cmp ax, 0x6f
je 0x429c51
cmp ax, 0x79
je 0x429c51
cmp ax, 0x71
je 0x429c51
cmp ax, 0x7b
je 0x429c51
cmp ax, 0x75
je 0x429c51
cmp ax, 0x7f
je 0x429c51
cmp ax, 0x76
je 0x429c51
cmp ax, 0x80
je 0x429c51
cmp ax, 0x95
je 0x429c51
cmp ax, 0x97
jne 0x429ccd
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push str.Shop_d
push eax
mov dword [esp + 0xb8], ebx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi + 0x4504]
add esp, 0xc
mov ebp, dword [ecx + 0x32c4]
mov ecx, esi
call fcn.0040b700
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x34]
movsx ecx, word [esp + 0x1e]
push edx
push ecx
movsx edx, byte [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x37d8]
push ecx
push edx
push ebp
push str.BuyShopItem
mov ecx, eax
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CItemLog::InsertLog_char_const___int__char___char___int__int__unsigned_long_int_]
lea ecx, [esp + 0x18]
mov dword [esp + 0xac], 0xffffffff
call fcn.00489b20
cmp word [esp + 0x10], 0x3e8
jb 0x429d46
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push str.OPShop_d
push ecx
mov dword [esp + 0xb8], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
call fcn.0040b700
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x5c]
movsx ecx, word [esp + 0x1e]
push edx
push ecx
movsx edx, byte [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
push 0xf
lea edx, [esi + 0x37d8]
push ecx
push edx
mov ecx, eax
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CGMCommandLog::InsertLog_char___char___int__int__int__int_]
lea ecx, [esp + 0x18]
mov dword [esp + 0xac], 0xffffffff
call fcn.00489b20
mov eax, dword [esp + 0x40]
xor ebp, ebp
cmp eax, ebp
jne 0x429edf
mov eax, edi
mov edx, dword [esi + 0x3f90]
imul eax, dword [esp + 0x20]
sub edx, eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x3f90], edx
mov ecx, dword [esi + 0x3f94]
mov edx, dword [esp + 0x30]
sbb ecx, ebp
mov dword [esi + 0x3f94], ecx
mov ecx, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0042ad80
push ebp
push ebp
mov ecx, esi
call fcn.00439f50
sub edi, dword [esp + 0x58]
imul edi, dword [esp + 0x20]
cmp edi, ebp
jbe 0x429f1f
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x54]
push ebx
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::GetArmyShopOwner_int_]
push eax
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::GetArmySide_int_]
mov ecx, ebp
mov byte [esp + 0x3f], al
call dword [sym.imp.rmDB.dll_public:_unsigned_char___thiscall_CArmy::GetArmyBaseCamp_void_]
test al, al
ja 0x429dfc
cmp edi, 0x77359400
jbe 0x429ded
push 0x77359400
push ebx
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::AddArmyShopGain_int__unsigned_long_int_]
sub edi, 0x77359400
push edi
push ebx
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::AddArmyShopGain_int__unsigned_long_int_]
jmp 0x429f1f
mov cl, byte [esp + 0x3f]
push 0
cmp al, cl
jne 0x429e74
push 0xa
push 0
push edi
call fcn.0048a1c0
push 0
push 0x64
push edx
push eax
call fcn.0048a110
mov ebx, eax
sub edi, ebx
cmp ebx, 0x77359400
jbe 0x429e3a
push 0x77359400
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::AddArmyBaseGain_unsigned_long_int_]
sub ebx, 0x77359400
push ebx
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::AddArmyBaseGain_unsigned_long_int_]
mov ebx, dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::AddArmyShopGain_int__unsigned_long_int_]
cmp edi, 0x77359400
jbe 0x429e65
mov ecx, dword [esp + 0x14]
push 0x77359400
push ecx
mov ecx, ebp
call ebx
sub edi, 0x77359400
mov edx, dword [esp + 0x14]
push edi
push edx
mov ecx, ebp
call ebx
jmp 0x429f1f
push 0x1e
push 0
push edi
call fcn.0048a1c0
push 0
push 0x64
push edx
push eax
call fcn.0048a110
mov ebx, eax
sub edi, ebx
cmp ebx, 0x77359400
jbe 0x429ea8
push 0x77359400
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::AddArmyBaseGain_unsigned_long_int_]
sub ebx, 0x77359400
push ebx
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::AddArmyBaseGain_unsigned_long_int_]
mov ebx, dword [sym.imp.rmDB.dll_public:_int___thiscall_CArmy::AddArmyShopGain_int__unsigned_long_int_]
cmp edi, 0x77359400
jbe 0x429ed3
mov eax, dword [esp + 0x14]
push 0x77359400
push eax
mov ecx, ebp
call ebx
sub edi, 0x77359400
mov ecx, dword [esp + 0x14]
push edi
push ecx
mov ecx, ebp
call ebx
jmp 0x429f1f
imul edi, dword [esp + 0x20]
mov ecx, dword [esi + 0x3f98]
mov edx, dword [esp + 0x34]
sub ecx, edi
push edx
mov dword [esi + 0x3f98], ecx
mov eax, dword [esi + 0x3f9c]
mov ecx, dword [esp + 0x14]
sbb eax, ebp
mov dword [esi + 0x3f9c], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.0042ad80
push ebp
push ebp
mov ecx, esi
call fcn.00439fa0
xor edx, edx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x44], edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x48], edx
push 1
mov dword [esp + 0x50], edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x38]
push edx
push edi
call fcn.004872b0
lea eax, [esp + 0x44]
push eax
push edi
jmp 0x42a024
or edi, 0xffffffff
lea ebp, [esp + 0x74]
push 0
push 0
push 0
push 0
push 0
push edi
push 0xc8
lea ecx, [esp + 0x78]
push 6
push ecx
mov ecx, esi
call fcn.00431940
mov edx, dword [eax]
inc edi
mov dword [ebp], edx
add ebp, 8
mov eax, dword [eax + 4]
cmp edi, 4
mov dword [ebp - 4], eax
jle 0x429f62
movsx eax, byte [esp + 0x34]
mov ebp, dword [esp + 0x2c]
lea ecx, [esi + 0x37d8]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebx
push 0x23
mov ecx, ebp
call fcn.00487a30
cmp eax, 1
jne 0x42a02b
xor ecx, ecx
lea edi, [esp + 0x74]
mov dword [esp + 0x44], ecx
mov ebx, 6
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
cmp byte [edi + 4], 0xff
je 0x429fea
mov edx, dword [edi + 4]
mov eax, dword [edi]
push 0
push edx
push eax
mov ecx, esi
call fcn.00431fe0
add edi, 8
dec ebx
jne 0x429fd4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 0
push ecx
push edx
mov ecx, esi
call fcn.00431fe0
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x5c]
push 1
lea ecx, [esp + 0x48]
push eax
push ecx
push edx
push 0x23
mov ecx, ebp
call fcn.004872b0
lea eax, [esp + 0x44]
push eax
push 0x23
mov ecx, esi
call fcn.0042adf0
mov ecx, dword [esi + 0x44ec]
xor edi, edi
mov ebx, dword [ecx + 8]
test ebx, ebx
mov dword [esp + 0x14], ebx
jbe 0x42a217
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esi + 0x4504]
mov ecx, dword [esi + 0x44ec]
mov eax, dword [edx + 0x32c4]
push eax
push edi
call fcn.00405c80
test eax, eax
je 0x42a20e
mov eax, dword [esi + 0x21b4]
mov ecx, dword [eax + edi*4]
push ecx
mov ecx, dword [esi + 0x44ec]
push edi
call fcn.00405d00
test eax, eax
je 0x42a20e
mov edx, dword [esi + 0x21b4]
lea ecx, [esp + 0x10]
mov eax, dword [edx + edi*4]
push eax
push edi
push ecx
mov ecx, dword [esi + 0x44ec]
call fcn.00405d40
push 1
push 0
lea edx, [esp + 0x18]
push 0x49b09c
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0xc0], 3
call dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetFirstWord_class_CString___char_const___char___int_]
mov ecx, dword [esp + 0x54]
push str.BuyItem
push ecx
mov byte [esp + 0xc8], 4
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x1c
test eax, eax
jne 0x42a1e5
push 1
push eax
lea edx, [esp + 0x18]
push 0x49b09c
lea eax, [esp + 0x60]
push edx
push eax
call dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetFirstWord_class_CString___char_const___char___int_]
mov eax, dword [eax]
push eax
call ebp
add esp, 0x18
lea ecx, [esp + 0x54]
mov bl, al
call fcn.00489b20
push 1
push 0
lea ecx, [esp + 0x18]
push 0x49b09c
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetFirstWord_class_CString___char_const___char___int_]
mov eax, dword [eax]
push eax
call ebp
add esp, 0x18
lea ecx, [esp + 0x18]
mov word [esp + 0x46], ax
call fcn.00489b20
push 1
push 0
lea eax, [esp + 0x18]
push 0x49b09c
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetFirstWord_class_CString___char_const___char___int_]
mov eax, dword [eax]
push eax
call ebp
add esp, 0x18
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], eax
call fcn.00489b20
cmp bl, byte [esp + 0x1c]
jne 0x42a1e5
mov dx, word [esp + 0x46]
cmp dx, word [esp + 0x1e]
jne 0x42a1e5
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
ja 0x42a1e5
mov ecx, dword [esi + 0x21b4]
lea eax, [esp + 0x38]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esi + 0x44ec]
push edx
push edi
push eax
call fcn.00405da0
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
mov byte [esp + 0xb4], 5
call sub.MFC42.DLL_CString::CString_1
push edi
mov ecx, esi
call fcn.004260b0
push eax
push edi
mov ecx, esi
call fcn.00425000
lea ecx, [esp + 0x38]
mov byte [esp + 0xac], 4
call fcn.00489b20
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 3
call fcn.00489b20
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call fcn.00489b20
mov ebx, dword [esp + 0x14]
inc edi
cmp edi, ebx
jb 0x42a048
mov dl, byte [esi + 0x4564]
mov ecx, esi
and dl, 0xfd
mov byte [esi + 0x4564], dl
call fcn.0040b700
mov eax, dword [eax + 8]
add esi, 0x37d8
push esi
mov ecx, eax
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CUserDB::SetUserItem_struct_USERDB__]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0
ret 8