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

Disassembly:
push 0xffffffffffffffff
push 0x475b25
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebp, dword [0x497878]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x20], ebp
call fcn.004082a0
lea ecx, [esp + 0x20]
xor ebx, ebx
push ecx
mov dword [esp + 0xb8], ebx
call fcn.00409fa0
add esp, 4
mov edi, 8
mov byte [esp + 0xb4], 1
cmp dword [eax + 0x18], edi
jb 0x404c5c
mov eax, dword [eax + 4]
jmp 0x404c5f
add eax, 4
lea edx, [esp + 0x94]
push edx
push eax
lea edx, [esp + 0x60]
lea ecx, [esp + 0x44]
call fcn.00455cb0
add esp, 8
test al, al
jne 0x404c82
mov byte [esp + 0x17], bl
jmp 0x404c90
lea eax, [esp + 0x3c]
push eax
call fcn.00456630
mov byte [esp + 0x17], al
mov byte [esp + 0xb4], bl
cmp dword [esp + 0x38], edi
jb 0x404caa
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0045850d
add esp, 4
cmp byte [esp + 0x17], bl
je 0x405059
push ecx
mov eax, esp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x8c], ebx
lea esi, [esp + 0x40]
mov dword [esp + 0x1c], esp
mov dword [eax], 0x47aa74
call fcn.00455ec0
cmp al, bl
je 0x405059
push ecx
mov eax, esp
mov dword [eax], 0x47aa7c
lea esi, [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [esp + 0x1c], esp
call fcn.004080e0
cmp dword [eax + 0x18], edi
jb 0x404d16
mov eax, dword [eax + 4]
jmp 0x404d19
add eax, 4
push eax
call fcn.00458e0e
add esp, 4
mov dword [ebp + 0xe0], eax
cmp dword [esp + 0x38], edi
jb 0x404d3b
mov edx, dword [esp + 0x24]
push edx
call fcn.0045850d
add esp, 4
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
je 0x404d79
cmp dword [esp + 0x88], 1
jne 0x404d79
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x74], ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x88], ecx
push ecx
mov eax, esp
lea esi, [esp + 0x40]
mov dword [esp + 0x1c], esp
mov dword [eax], str.goods
call fcn.00455ec0
cmp al, bl
je 0x405050
mov eax, esi
call fcn.004562f0
mov edi, edi
push ecx
mov eax, esp
lea esi, [esp + 0x40]
mov dword [esp + 0x1c], esp
mov dword [eax], str.item
call fcn.00455ec0
cmp al, bl
je 0x405047
push 0x3d3c
call fcn.00458595
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x404df6
xor edx, edx
mov dword [ebp + 0x24], 7
mov dword [ebp + 0x20], ebx
lea esi, [ebp + 0x2c]
mov word [ebp + 0x10], dx
call fcn.004050a0
lea eax, [ebp + 0x3b74]
call fcn.00405210
jmp 0x404df8
xor ebp, ebp
push 0x3d3c
push ebx
push ebp
call fcn.0045da70
mov ecx, dword [esp + 0x84]
add esp, 0xc
cmp ecx, ebx
je 0x404e48
cmp dword [esp + 0x88], 1
jne 0x404e48
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x74], ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x88], ecx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 5
mov eax, str.index
mov word [esi + 4], dx
call fcn.00403eb0
mov ebx, ebp
lea edi, [esp + 0x58]
call fcn.00405e00
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0x34], esp
mov word [esi + 4], ax
push 4
mov eax, str.type
call fcn.00403eb0
lea ebx, [ebp + 4]
call fcn.00405e00
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 2
mov eax, 0x47aab4
mov word [esi + 4], cx
call fcn.00403eb0
lea ebx, [ebp + 8]
call fcn.00405e00
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 5
mov eax, str.urlid
mov word [esi + 4], dx
call fcn.00403eb0
lea ebx, [ebp + 0xc]
call fcn.00405d40
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0x34], esp
mov word [esi + 4], ax
push 0xb
mov eax, str.parentindex
call fcn.00403eb0
lea ebx, [ebp + 0x28]
call fcn.00405e00
mov ebx, dword [esp + 0x1c]
lea ecx, [ebp + 0x2c]
push ecx
push ebx
mov eax, edi
call fcn.00405330
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 6
mov eax, str.cat_id
mov word [esi + 4], dx
call fcn.00403eb0
lea eax, [ebp + 0x3b74]
push eax
call fcn.004056f0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x404fda
mov edi, dword [esp + 0x9c]
mov edx, dword [esp + 0x78]
mov ecx, eax
mov esi, eax
and eax, 0xffff
sar esi, 0x10
mov esi, dword [edi + esi*4]
shl eax, 5
mov eax, dword [esi + eax + 0x10]
mov dword [esp + 0x7c], edx
xor edx, edx
test ecx, ecx
setne dl
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], edx
inc dword [ebx + 0xe8]
mov ecx, dword [ebx + 0xe8]
mov eax, dword [ebx + 0xec]
cmp ecx, eax
jl 0x405023
lea esi, [eax + eax]
test esi, esi
jne 0x404ffc
mov esi, 0xb
mov ecx, dword [ebx + 0xe4]
lea eax, [esi*4]
push eax
push ecx
call fcn.004597c2
add esp, 8
test eax, eax
je 0x40503a
mov dword [ebx + 0xec], esi
mov dword [ebx + 0xe4], eax
mov edx, dword [ebx + 0xe8]
mov eax, dword [ebx + 0xe4]
mov dword [eax + edx*4 - 4], ebp
xor ebx, ebx
jmp 0x404da0
dec dword [ebx + 0xe8]
xor ebx, ebx
jmp 0x404da0
lea eax, [esp + 0x3c]
call fcn.00456330
lea eax, [esp + 0x3c]
call fcn.00456330
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0xb8], 0xffffffff
call fcn.00408100
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004584fe
add esp, 0xa4
ret