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

Disassembly:
push 0xffffffffffffffff
push 0x1395a22
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x14016ec]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0x24
mov dword [esp + 0x5c], ebx
call fcn.01328a50
add esp, 4
cmp eax, ebx
je 0x122d534
mov dword [esp + 0x54], eax
mov dword [eax], eax
mov eax, dword [esp + 0x54]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x54]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x54]
mov byte [eax + 0x20], 1
mov ecx, dword [esp + 0x54]
mov byte [ecx + 0x21], 1
mov dword [esp + 0x6c], 1
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x6c], 2
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x34], esi
cmp eax, esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
je 0x122d3b1
jmp 0x122d204
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x15], 0
mov dword [esp + 0x18], edx
jne 0x122d22a
cmp dword [eax + 0xc], edx
jae 0x122d220
mov eax, dword [eax + 8]
jmp 0x122d224
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x15], 0
je 0x122d216
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ebx
cmp ecx, eax
je 0x122d247
cmp edx, dword [ecx + 0xc]
jb 0x122d247
lea eax, [esp + 0x20]
jmp 0x122d24f
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov eax, dword [eax]
cmp eax, dword [esi + 0x20]
je 0x122d25b
mov edi, dword [eax + 0x10]
jmp 0x122d25d
xor edi, edi
mov dword [esp + 0x20], edi
cmp edi, dword [esp + 0x78]
je 0x122d396
cmp byte [esp + 0x7c], 0
jne 0x122d27c
test edi, edi
jne 0x122d396
jmp 0x122d2ab
test edi, edi
je 0x122d2ab
lea ecx, [esi + 0xc]
lea ebx, [esp + 0x28]
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], edi
call fcn.0122e230
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x10]
je 0x122d2a7
cmp dword [ecx + 0x10], 5
je 0x122d396
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x18]
mov esi, ebx
call fcn.0122acc0
mov edx, dword [esp + 0x78]
mov dword [eax], edx
mov ebp, dword [esp + 0x44]
lea eax, [esp + 0x18]
cmp eax, ebp
jae 0x122d2fc
mov ecx, eax
mov eax, dword [esp + 0x40]
cmp eax, ecx
ja 0x122d2fc
mov esi, ecx
sub esi, eax
sar esi, 2
cmp ebp, dword [esp + 0x48]
jne 0x122d2f0
lea eax, [esp + 0x40]
call fcn.0129e360
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
test ebp, ebp
je 0x122d31e
mov edx, dword [eax + esi*4]
mov dword [ebp], edx
jmp 0x122d31a
cmp ebp, dword [esp + 0x48]
jne 0x122d30f
lea eax, [esp + 0x40]
call fcn.0129e360
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x122d31e
mov eax, dword [esp + 0x18]
mov dword [ebp], eax
mov ebp, dword [esp + 0x44]
add ebp, 4
mov dword [esp + 0x44], ebp
test edi, edi
je 0x122d392
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x24]
call fcn.0122e290
mov ebp, eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x18]
cmp edx, eax
jae 0x122d371
mov ecx, dword [ebp]
cmp ecx, edx
ja 0x122d371
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [ebp + 8]
jne 0x122d35e
mov eax, ebp
call fcn.0129e360
mov eax, dword [ebp]
lea ecx, [eax + esi*4]
mov eax, dword [ebp + 4]
test eax, eax
je 0x122d38a
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x122d38a
cmp eax, dword [ebp + 8]
jne 0x122d37d
mov eax, ebp
call fcn.0129e360
mov eax, dword [ebp + 4]
test eax, eax
je 0x122d38a
mov edx, dword [esp + 0x18]
mov dword [eax], edx
add dword [ebp + 4], 4
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x34]
jne 0x122d200
mov ecx, dword [esp + 0x40]
xor ebx, ebx
sub ebp, ecx
test ebp, 0xfffffffc
je 0x122d4cb
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x7c]
push edx
push esi
call eax
mov eax, dword [esp + 0x54]
mov esi, dword [eax]
mov dword [esp + 0x34], eax
cmp esi, eax
je 0x122d4b3
mov edi, dword [esp + 0x74]
mov ebp, dword [esi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esi + 0x10]
push eax
push ebp
push edi
call edx
push ebp
call fcn.0122c220
test al, al
je 0x122d460
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x41], 0
jne 0x122d426
cmp dword [eax + 0xc], ebp
jae 0x122d41c
mov eax, dword [eax + 8]
jmp 0x122d420
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x41], 0
je 0x122d412
mov eax, dword [edi + 0x10]
mov dword [esp + 0x7c], ecx
cmp ecx, eax
je 0x122d43c
cmp ebp, dword [ecx + 0xc]
jb 0x122d43c
lea eax, [esp + 0x7c]
jmp 0x122d444
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov eax, dword [eax]
cmp eax, dword [edi + 0x10]
je 0x122d451
cmp byte [eax + 0x14], 0
jne 0x122d460
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push edx
push edi
call eax
cmp byte [esi + 0x21], 0
jne 0x122d4a7
mov eax, dword [esi + 8]
cmp byte [eax + 0x21], 0
jne 0x122d48c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
jne 0x122d4a7
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
je 0x122d480
jmp 0x122d4a7
mov eax, dword [esi + 4]
cmp byte [eax + 0x21], 0
jne 0x122d4a5
cmp esi, dword [eax + 8]
jne 0x122d4a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x122d495
mov esi, eax
cmp esi, dword [esp + 0x34]
jne 0x122d3e5
jmp 0x122d4b7
mov edi, dword [esp + 0x74]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x40]
push eax
push edi
call edx
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x6c], 1
cmp ecx, ebx
je 0x122d4dd
push ecx
call fcn.01328a36
add esp, 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x6c], 3
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x58]
call fcn.0122e620
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x54]
push eax
call fcn.01328a36
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], ebx
call fcn.011e4df0
int3