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

Disassembly:
push 0xffffffffffffffff
push 0x4537c7
mov eax, dword fs:[0]
push eax
sub esp, 0x158
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477b9c]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x180]
mov eax, dword [esp + 0x17c]
push edi
push eax
call fcn.0040bc80
push edi
mov ebp, eax
call fcn.0040af40
add esp, 0xc
test eax, eax
jne 0x41205f
push 0x14
call fcn.0045103a
add esp, 4
mov dword [esp + 0x2c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x174], ebx
je 0x4118cb
mov ecx, eax
call fcn.0043d3a0
mov esi, eax
jmp 0x4118cd
xor esi, esi
mov dword [esp + 0x80], esi
cmp esi, ebx
mov dword [esp + 0x174], 1
mov dword [esp + 0x78], vtable.ResourceDAO::CTxGuard.0
mov dword [esp + 0x7c], esi
je 0x4118f9
mov edx, dword [esi]
mov eax, dword [edx + 4]
push ebx
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push ebp
lea eax, [esp + 0x90]
push eax
mov ecx, esi
mov byte [esp + 0x17c], 2
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xd4]
push ebp
mov ecx, esi
mov byte [esp + 0x178], 3
call edx
push ebx
push 0xffffffffffffffff
push str.itemCount
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.0044b840
mov eax, dword [esp + 0x2c]
push 0x45f684
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x180], 4
call fcn.0040be40
add esp, 0xc
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x17c], 5
call fcn.00439060
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x4c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x2c]
push edx
mov byte [esp + 0x180], 3
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esi]
mov eax, dword [edx + 0xd0]
add esp, 0x10
push ebp
mov ecx, esi
call eax
push ebx
push 0xffffffffffffffff
push str.unreadItemCount
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.0044b840
mov ecx, dword [esp + 0x2c]
push 0x45f684
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x180], 6
call fcn.0040be40
add esp, 0xc
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x17c], 7
call fcn.00439060
mov ecx, dword [esp + 0x50]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x4c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x180], 3
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esi]
mov edx, dword [edx + 0xa0]
add esp, 0x10
push ebp
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov byte [esp + 0x174], 8
call edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x178], 9
call fcn.0044b320
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
lea ebp, [esp + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebp
jmp 0x411aa0
cmp ebp, ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
je 0x411ab7
lea ecx, [esp + 0x34]
cmp ebp, ecx
je 0x411abd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x88]
cmp dword [esp + 0x30], edx
je 0x411b75
cmp ebp, ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov dword [esp + 0x74], ecx
je 0x411ae4
lea edx, [esp + 0x34]
cmp ebp, edx
je 0x411aea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x30], eax
je 0x411aff
push 0x2c
lea ecx, [esp + 0x5c]
call fcn.0044b360
cmp ebp, ebx
jne 0x411b09
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [ebp + 4]
jne 0x411b18
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xc]
push 0x45f684
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0040be40
add esp, 0xc
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x178], 0xa
call fcn.0044b8d0
mov edx, dword [esp + 0x50]
push edx
mov byte [esp + 0x178], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x4c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x2c]
call fcn.004477f0
mov ebp, dword [esp + 0x2c]
jmp 0x411aa0
push ebx
push 0xffffffffffffffff
push str.dependencies
lea ecx, [esp + 0x20]
call fcn.0044b840
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x17c], 0xb
call fcn.00439060
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0x178], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
push ebx
push 0xffffffffffffffff
push 0x45f78c
lea ecx, [esp + 0x20]
call fcn.0044b840
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x17c], 0xc
call fcn.00439060
mov ecx, dword [esp + 0x24]
push ecx
mov byte [esp + 0x178], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
push ebx
push 0xffffffffffffffff
push str.flags
lea ecx, [esp + 0x20]
call fcn.0044b840
mov eax, dword [esp + 0xd0]
push str.0x_x
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x180], 0xd
call fcn.0040be40
add esp, 0xc
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x17c], 0xe
call fcn.00439060
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x4c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x2c]
push edx
mov byte [esp + 0x180], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
push ebx
push 0xffffffffffffffff
push str.contentSize
lea ecx, [esp + 0x20]
call fcn.0044b840
mov ecx, dword [esp + 0xd4]
push 0x45f684
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x180], 0xf
call fcn.0040be40
add esp, 0xc
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x17c], 0x10
call fcn.00439060
mov ecx, dword [esp + 0x50]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x4c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x180], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
push ebx
push 0xffffffffffffffff
push 0x45f724
lea ecx, [esp + 0x20]
call fcn.0044b840
mov edx, dword [esp + 0xc8]
push 0x45f684
push edx
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x180], 0x11
call fcn.0040be40
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x17c], 0x12
call fcn.00439060
mov edx, dword [esp + 0x50]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x4c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x2c]
push ecx
mov byte [esp + 0x180], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
cmp dword [esp + 0x108], ebx
jl 0x411e7e
push ebx
push 0xffffffffffffffff
push str.curSynchSize
lea ecx, [esp + 0x20]
call fcn.0044b840
mov eax, dword [esp + 0x108]
push 0x45f684
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x180], 0x13
call fcn.0040be40
add esp, 0xc
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x17c], 0x14
call fcn.00439060
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x4c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x2c]
push edx
mov byte [esp + 0x180], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
push ebx
push 0xffffffffffffffff
push str.curSynchSoFar
lea ecx, [esp + 0x20]
call fcn.0044b840
mov ecx, dword [esp + 0x10c]
push 0x45f684
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x180], 0x15
call fcn.0040be40
add esp, 0xc
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x17c], 0x16
call fcn.00439060
mov ecx, dword [esp + 0x50]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x4c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x180], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
push ebx
push 0xffffffffffffffff
push str.synchRetries
lea ecx, [esp + 0x20]
call fcn.0044b840
mov edx, dword [esp + 0xcc]
push 0x45f684
push edx
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x180], 0x17
call fcn.0040be40
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x17c], 0x18
call fcn.00439060
mov edx, dword [esp + 0x50]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x4c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x2c]
push ecx
mov byte [esp + 0x180], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
push ebx
push 0xffffffffffffffff
push str.synchStatusCode
lea ecx, [esp + 0x20]
call fcn.0044b840
mov eax, dword [esp + 0x110]
push 0x45f684
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x180], 0x19
call fcn.0040be40
add esp, 0xc
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x17c], 0x1a
call fcn.00439060
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x4c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x2c]
push edx
mov byte [esp + 0x180], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
push ebx
push 0xffffffffffffffff
push str.state
lea ecx, [esp + 0x20]
call fcn.0044b840
mov ecx, dword [esp + 0x90]
push ecx
mov byte [esp + 0x178], 0x1b
call fcn.00410f40
add esp, 4
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.00439060
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0x178], 9
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x184]
push edi
push edx
call fcn.0040ac30
mov eax, dword [esp + 0x9c]
push eax
push edi
call fcn.0040cf50
mov ecx, dword [esp + 0x80]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x7c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
add esp, 0x20
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov edi, ecx
push edi
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x188], 3
call fcn.00416820
mov ecx, dword [esp + 0x38]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x174], 2
call fcn.0040ffb0
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call eax
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 8