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

Disassembly:
sub esp, 0xdc
mov eax, dword [0x10c67840]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe4]
mov edx, dword [eax]
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [edx]
cmp dword [edx + 4], ebx
push esi
push edi
mov dword [esp + 0x18], ecx
jne 0x10120501
lea eax, [esp + 0x1c]
push eax
mov eax, ecx
lea edi, [esp + 0x18]
call fcn.1012a2d0
mov edx, dword [eax]
push ecx
mov ecx, esp
mov dword [eax], ebx
mov dword [ecx], edx
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov ecx, eax
je 0x101208e9
add dword [eax + 4], 0xffffffff
add eax, 4
cmp dword [eax], ebx
jg 0x101208e9
cmp dword [ecx + 8], ebx
jne 0x101208e9
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
jmp 0x101208e9
mov word [esp + 0x14], 9
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esp + 0x44]
call fcn.1006ed70
push eax
lea edx, [esp + 0x18]
push edx
call fcn.101db300
add esp, 0xc
mov eax, edi
call fcn.1006ebf0
lea eax, [esp + 0xac]
push eax
mov ecx, 0x10c12b1c
call fcn.1006ef10
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x14], ebx
mov byte [esp + 0x14], 1
je 0x101208d4
lea edx, [esp + 0x10]
push edx
call fcn.100ce960
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x88]
mov al, byte [esp + 0x8c]
or byte [esp + 0x94], 1
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x90]
and edx, 0xc000000a
or edx, 0xa
and ecx, 0x80000013
and al, 0xfc
mov dword [esp + 0x88], edx
or ecx, 0x13
test al, 2
lea edx, [esp + 0x95]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0x8c], al
mov dword [esp + 0x90], ecx
mov dword [esp + 0x84], edx
mov byte [esp + 0x95], bl
mov dword [esp + 0x78], ebx
je 0x101205e3
lea eax, [esp + 0x78]
push eax
call fcn.102f353f
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
add dword [eax], 1
lea edx, [esp + 0x10]
push edx
call fcn.100ce960
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x50]
mov al, byte [esp + 0x54]
or byte [esp + 0x5c], 1
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
and edx, 0xc000000a
or edx, 0xa
and ecx, 0x80000013
and al, 0xfc
mov dword [esp + 0x50], edx
or ecx, 0x13
test al, 2
lea edx, [esp + 0x5d]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x54], al
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], edx
mov byte [esp + 0x5d], bl
mov dword [esp + 0x40], ebx
je 0x1012065e
lea eax, [esp + 0x40]
push eax
call fcn.102f353f
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
add dword [eax], 1
lea edx, [esp + 0x10]
push edx
call fcn.100ce960
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
call fcn.100ce960
cmp esi, ebx
mov edi, dword [esp + 0x10]
je 0x101206be
cmp dword [esi + 4], ebx
je 0x10120698
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
jmp 0x1012069d
mov ecx, dword [esi]
mov dword [edi + 8], ecx
cmp dword [esi], ebx
je 0x101206ab
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
jmp 0x101206b1
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov edx, dword [edi + 0xc]
push esi
call edx
add esp, 4
add dword [edi + 0x14], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.1006ebf0
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
cmp dword [ecx + 4], ebx
je 0x10120807
mov edx, dword [esp + 0xac]
mov eax, dword [edx]
cmp dword [eax + 4], ebx
je 0x1012077c
lea eax, [esp + 0xac]
lea ecx, [esp + 0x30]
call fcn.1005baf0
push 0x38
call fcn.102f361c
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1012081f
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
call fcn.101412a0
mov dword [esi], 0x10c236a8
mov dword [esi + 0x2c], 0x10c23fa4
add dword [esi + 4], 1
mov ecx, esi
mov edx, dword [esp + 0x18]
push ecx
mov eax, esp
mov dword [eax], ecx
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.101240d0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call eax
lea ecx, [esp + 0x30]
push ecx
call fcn.10001b00
push 0x10c12b1c
lea edx, [esp + 0xb0]
push edx
call fcn.10070560
lea eax, [esp + 0x74]
lea ecx, [esp + 0x2c]
call fcn.1005baf0
cmp dword [edi + 0x14], ebx
mov edx, dword [esp + 0x14]
sete al
mov byte [esp + 0x34], al
mov ecx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x38]
call fcn.10122e70
add esp, 0xc
push 0x38
mov edi, eax
call fcn.102f361c
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10120826
mov edx, dword [esp + 0x18]
push edi
call fcn.101412a0
mov dword [esi], 0x10c236a8
mov dword [esi + 0x2c], 0x10c23fa4
add dword [esi + 4], 1
lea ecx, [esp + 0x38]
push ecx
call fcn.10001b00
lea edx, [esp + 0x2c]
push edx
call fcn.10001b00
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, esp
mov dword [eax], esi
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x14], ebx
je 0x1012082a
push 9
lea eax, [esp + 0xb0]
call fcn.10071190
jmp 0x101208be
xor ecx, ecx
jmp 0x1012072d
xor esi, esi
jmp 0x101207db
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx]
cmp dword [edx + 4], ebx
je 0x101208be
lea eax, [esp + 0xac]
lea ecx, [esp + 0x28]
call fcn.1005baf0
push 0x38
call fcn.102f361c
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10120902
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
call fcn.101412a0
mov dword [esi], 0x10c236a8
mov dword [esi + 0x2c], 0x10c23fa4
add dword [esi + 4], 1
mov ecx, esi
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.101240d0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
mov ecx, ebp
mov dword [esp + 0x28], ebx
call eax
lea ecx, [esp + 0x28]
push ecx
call fcn.10001b00
lea eax, [esp + 0x74]
mov byte [esp + 0x14], bl
call fcn.1006ebf0
cmp dword [edi + 0x14], ebx
jne 0x10120550
lea eax, [esp + 0xac]
call fcn.1006ebf0
mov edi, dword [esp + 0x10]
call fcn.100ce9d0
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.102f2d37
add esp, 0xdc
ret
xor ecx, ecx
jmp 0x10120881