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

Disassembly:
push 0xffffffffffffffff
push 0x453f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477b9c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
push 0x14
call fcn.0045103a
add esp, 4
mov dword [esp + 0x14], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x68], esi
je 0x41602a
mov ecx, eax
call fcn.0043d3a0
mov ebp, eax
jmp 0x41602c
xor ebp, ebp
mov dword [esp + 0x14], ebp
cmp ebp, esi
mov dword [esp + 0x68], 1
mov dword [esp + 0x18], vtable.ResourceDAO::CTxGuard.0
mov dword [esp + 0x1c], ebp
je 0x416053
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push esi
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov byte [esp + 0x6c], 2
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
mov byte [esp + 0x68], 3
call edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x24]
cmp eax, esi
mov byte [esp + 0x68], 4
jne 0x4160a3
xor eax, eax
jmp 0x4160bc
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
push eax
lea ecx, [esp + 0x34]
call fcn.0044b320
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x28]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, eax
jbe 0x4160e5
call ebx
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp eax, edi
jbe 0x4160f3
call ebx
mov eax, dword [esp + 0x24]
cmp esi, edi
je 0x41616b
cmp eax, dword [esp + 0x28]
mov edi, eax
jbe 0x416101
call ebx
cmp esi, edi
je 0x416110
push 0x2c
lea ecx, [esp + 0x34]
call fcn.0044b360
cmp esi, dword [esp + 0x28]
jb 0x416118
call ebx
mov eax, dword [esi]
push 0x45f684
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040be40
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 5
call fcn.0044b8d0
mov edx, dword [esp + 0x58]
push edx
mov byte [esp + 0x6c], 4
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x54]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
cmp esi, dword [esp + 0x28]
jb 0x416160
call ebx
add esi, 0xe0
jmp 0x4160e1
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 0x45fd48
lea ecx, [esp + 0x54]
call fcn.0044b840
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
mov byte [esp + 0x70], 6
call fcn.00439060
mov eax, dword [esp + 0x58]
push eax
mov byte [esp + 0x6c], 4
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x54]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x78]
push esi
push edx
call fcn.0040ac30
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 esi, dword [esp + 0x3c]
add esp, 0x18
cmp esi, ebx
mov byte [esp + 0x68], 2
je 0x416206
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x4161fd
mov ecx, esi
call fcn.0040ffb0
add esi, 0xe0
cmp esi, edi
jne 0x4161e8
mov esi, dword [esp + 0x24]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
mov dword [esp + 0x6c], 0xffffffff
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8