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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474868
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x497644]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x497644]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x14]
test dword [esi + 0x14], 0x4000
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edi
mov byte [esp + 0x2c], al
jne 0x41ede8
movzx eax, byte [ebp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 0x10]
push esi
push eax
mov eax, dword [ebp + 0xc]
push eax
push edi
call edx
mov eax, edi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043bb50
mov esp, ebp
pop ebp
ret 0x18
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00410490
xor edi, edi
push eax
mov dword [esp + 0x94], edi
call fcn.00421380
mov dword [esp + 0x94], 0xffffffff
mov ebx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x18], eax
cmp ebx, edi
je 0x41ee62
push edi
lea ecx, [esp + 0x14]
call fcn.00439ed0
mov eax, dword [ebx + 4]
cmp eax, edi
jbe 0x41ee37
cmp eax, 0xffffffff
jae 0x41ee37
dec eax
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
neg edi
sbb edi, edi
lea ecx, [esp + 0x10]
not edi
call fcn.00439f10
and edi, ebx
je 0x41ee60
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
call fcn.0043eb50
add esp, 4
xor edi, edi
mov dword [esp + 0x40], edi
push 8
mov dword [esp + 0x94], 1
call fcn.0043c350
add esp, 4
cmp eax, edi
je 0x41f03a
mov dword [esp + 0x40], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
mov dword [edx], ecx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
cmp byte [ebp + 0x1c], 0
mov ecx, dword [esp + 0x18]
mov ebx, 2
mov dword [esp + 0x90], ebx
je 0x41eef2
lea eax, [esp + 0x60]
push eax
call fcn.00420b00
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], 3
call fcn.004017b0
mov byte [esp + 0x90], bl
cmp dword [esp + 0x78], 0x10
jb 0x41ef29
mov ecx, dword [esp + 0x64]
push ecx
jmp 0x41ef21
lea edx, [esp + 0x60]
push edx
call fcn.00420ae0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], 4
call fcn.004017b0
mov byte [esp + 0x90], bl
cmp dword [esp + 0x78], 0x10
jb 0x41ef29
mov eax, dword [esp + 0x64]
push eax
call fcn.0043c1d0
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], edi
mov byte [esp + 0x64], 0
call fcn.004019b0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x54]
cmp ecx, edi
jl 0x41ef67
jg 0x41ef57
cmp eax, edi
jbe 0x41ef67
mov dword [esp + 0x20], ecx
cmp eax, edx
jbe 0x41ef67
sub eax, edx
mov dword [esp + 0x20], ecx
mov edi, eax
mov eax, dword [esi + 0x14]
mov ebx, dword [esp + 0x2c]
and eax, 0x1c0
cmp eax, 0x40
je 0x41efa5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.00420a40
mov edx, dword [eax]
mov dword [ebp + 0xc], edx
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x6c]
add esp, 0x18
mov dword [ebp + 0x10], eax
xor edi, edi
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x41efb4
lea eax, [esp + 0x44]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.004209d0
mov ecx, dword [eax]
push edi
push ebx
mov dword [ebp + 0xc], ecx
mov eax, dword [eax + 4]
xor edx, edx
push eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
push ecx
push esi
push edx
mov dword [ebp + 0x10], eax
call fcn.00420a40
add esp, 0x30
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x41f015
mov eax, dword [esp + 0x44]
push eax
call fcn.0043c1d0
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.004019b0
mov eax, esi
jmp 0x41edc5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], edi
call fcn.0043bb90
push 0x491a28
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], vtable.std::bad_alloc.0
call fcn.004459f0
int3