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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea esi, [eax + 0xc]
push edi
mov edi, ecx
mov eax, dword [esi]
mov dword [ebp - 4], edi
test eax, eax
je 0x10022edd
mov ecx, dword [ebx + 0x38]
cmp dword [eax + 0x14], ecx
jge 0x10022ec7
lea esi, [eax + 8]
mov eax, dword [eax + 8]
test eax, eax
jne 0x10022eb6
jmp 0x10022edd
jne 0x10022edd
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10022edd
call fcn.1002f4a8
cmp eax, 6
jge 0x10022f03
cmp dword [ebx + 0x30], 0
jne 0x10022ef2
mov ecx, dword [edi + 0x510]
push 1
call fcn.100412ee
jmp 0x10022f03
lea ecx, [edi + 0x554]
call fcn.10013955
mov ebx, eax
test ebx, ebx
jne 0x10022f0a
xor eax, eax
jmp 0x100236f5
and dword [ebx + 0x6c], 0
mov eax, dword [ebp + 8]
and byte [ebx + 0x70], 0
mov dword [ebx + 4], eax
mov eax, dword [esi]
mov dword [ebx + 8], eax
lea eax, [ebx + 0x50]
push eax
mov dword [esi], ebx
call fcn.100129dd
mov esi, dword [ebp + 0xc]
push 0xb
lea edi, [ebx + 0x24]
pop ecx
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x38]
mov dword [ebx + 0x14], ecx
mov cx, word [eax + 0x3c]
mov word [ebx + 0x18], cx
mov al, byte [eax + 0x40]
and byte [ebx + 0x63], 0
and byte [ebx + 0x62], 0
and byte [ebx + 0x65], 0
and byte [ebx + 0x66], 0
and byte [ebx + 0x88], 0
mov byte [ebx + 0x60], al
lea eax, [ebx + 0x8c]
mov byte [ebx + 0x64], 1
push eax
call fcn.100129dd
pop ecx
or dword [ebx + 0xb0], 0xffffffff
or dword [ebx + 0xb4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
and byte [ebx + 0x61], al
mov dword [ebx], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0xb8], eax
mov edi, dword [ecx + 4]
mov dword [ebp - 8], eax
cmp dword [edi + 0x2dc], eax
je 0x1002300d
mov ecx, edi
call fcn.1002f4a8
cmp eax, 6
jl 0x1002300d
mov eax, dword [ebp + 8]
test eax, eax
je 0x1002300d
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x1002300d
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x1002300d
cmp dword [ecx + 0x2dc], 0
je 0x10023004
mov eax, dword [eax + 4]
jmp 0x10022fe4
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp dword [eax + 0x44], esi
jne 0x100230af
mov ecx, ebx
call fcn.10022e7d
test eax, eax
jne 0x1002302f
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0xb], 2
jne 0x10023032
push 1
pop esi
mov ecx, edi
call fcn.1002f4a8
cmp eax, 6
jl 0x1002304e
test esi, esi
jne 0x1002304b
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0xb], 9
jne 0x100230af
push 1
pop esi
test esi, esi
je 0x100230af
xor eax, eax
push str.instance
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.100119c9
mov esi, dword [ebp - 4]
push 0xa
lea ecx, [ebp - 0x24]
inc dword [esi + 0x500]
lea eax, [esi + 0x500]
mov eax, dword [esi + 0x500]
push eax
call fcn.100117b3
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10023096
mov eax, 0x100b433c
push eax
call fcn.10011ce7
pop ecx
mov dword [ebx + 0x1c], eax
push dword [ebp - 0x24]
mov ecx, 0x100b4348
call fcn.100137e9
jmp 0x100230c1
mov eax, dword [ebp + 0xc]
push dword [eax + 0x44]
call fcn.10011ce7
mov esi, dword [ebp - 4]
pop ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x100230cd
mov eax, dword [eax + 0x20]
jmp 0x100230cf
xor eax, eax
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0xc]
test byte [eax + 0x2c], 0x40
je 0x100230e1
movzx eax, word [eax + 0x3e]
jmp 0x100230e3
xor eax, eax
mov ecx, ebx
mov word [ebx + 0x68], ax
call fcn.10028c50
mov eax, dword [ebx + 0x10]
movzx ecx, byte [eax + 0xb]
dec ecx
dec ecx
je 0x1002360f
sub ecx, 4
je 0x100234ae
sub ecx, 3
je 0x1002337b
dec ecx
je 0x100232e0
sub ecx, 0x57
jne 0x100236f3
xor eax, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
test byte [eax + 0x2d], 1
je 0x100231a9
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x290]
jl 0x100236f3
push 0x5b8
call fcn.1005bf24
test eax, eax
pop ecx
je 0x10023168
mov ecx, dword [ebp - 4]
push dword [ecx + 0x1e0]
mov ecx, eax
call fcn.1002e564
mov esi, eax
jmp 0x1002316a
xor esi, esi
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 0x2a8]
mov dword [esi + 0x2a8], eax
mov dword [esi + 0x2a4], 1
mov eax, dword [edi + 0x294]
mov ecx, esi
mov dword [esi + 0x294], eax
jmp 0x100231ad
mov esi, edi
mov ecx, edi
call fcn.100236fc
test esi, esi
je 0x100236f3
mov ecx, esi
call fcn.1002c0cb
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x20], esi
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x68], eax
mov dword [esi + 0x74], ebx
mov ecx, dword [ebx]
push esi
mov dword [esi + 0x70], ecx
call fcn.100220bd
mov eax, dword [edi + 0x290]
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.1002f4a8
mov ecx, dword [edi]
cmp dword [ebp - 0x10], 0
mov dword [esi], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 0x1c], eax
jl 0x1002320d
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], 0x20000000
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x60], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10023245
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10023245
push dword [eax + 0x1e8]
lea ecx, [esi + 0x148]
call fcn.1003311b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x48], 0
je 0x10023294
mov dword [esi + 0x80], esi
push dword [eax + 0x50]
lea ecx, [esi + 0x78]
push dword [eax + 0x48]
call fcn.100012c2
xor eax, eax
lea ecx, [esi + 0x78]
push eax
push eax
push eax
push 0x200
call fcn.10001345
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0xa], 0
je 0x100232ca
test edi, edi
je 0x10023290
mov ecx, edi
call fcn.1002f4a8
cmp eax, 6
jl 0x100232ca
and dword [esi + 0x30], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2cc], 0
jne 0x100232a8
push ebx
mov ecx, eax
call fcn.10022da2
cmp dword [esi + 0x50], 0
jne 0x100232c1
push ebx
mov ecx, esi
call fcn.1002cf75
push 0
push 0
mov ecx, esi
call fcn.1002e1b9
and dword [esi + 0x50], 0
jmp 0x100236f3
xor eax, eax
lea ecx, [esi + 0x78]
push eax
push eax
push eax
push 1
pop edi
push edi
call fcn.10001345
mov dword [esi + 0x30], edi
jmp 0x10023294
or word [ebx + 0x78], 0xffff
push 0x24
call fcn.1005bf24
pop ecx
mov dword [ebx + 0x74], eax
mov ecx, eax
call fcn.10021c87
mov ecx, dword [ebx + 0x10]
movzx eax, byte [ecx + 0x34]
dec eax
dec eax
jne 0x10023663
mov eax, dword [ecx + 0x20]
push 0x14
cdq
pop esi
idiv esi
push eax
mov eax, dword [ecx + 0x18]
push esi
cdq
pop ecx
idiv ecx
push eax
call fcn.10082c50
pop ecx
mov dword [ebx + 0x7c], eax
pop ecx
mov ecx, dword [ebx + 0x10]
push 0
push 0
mov eax, dword [ecx + 0x20]
cdq
idiv esi
push eax
mov eax, dword [ecx + 0x18]
push esi
cdq
pop ecx
idiv ecx
mov ecx, dword [ebx + 0x74]
push eax
push 5
call fcn.10021cc8
mov eax, dword [ebx + 0x74]
mov dword [eax + 0x20], 1
mov ecx, dword [ebx + 0x74]
call fcn.10021c6a
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 4]
test eax, eax
je 0x1002336e
push 4
push 0
push eax
call fcn.100982c0
add esp, 0xc
mov ecx, dword [ebx + 0x74]
call fcn.10021c7d
jmp 0x10023663
push 0x2dc
call fcn.1005bf24
test eax, eax
pop ecx
je 0x10023394
push ebx
mov ecx, eax
call fcn.1000e089
jmp 0x10023396
xor eax, eax
and dword [ebp + 0xc], 0
mov dword [ebx + 0xa8], eax
mov eax, dword [esi + 0x2cc]
test eax, eax
je 0x100233d1
mov ecx, ebx
mov edx, dword [ecx + 4]
cmp edx, eax
je 0x100233b9
mov ecx, edx
test ecx, ecx
jne 0x100233ac
xor eax, eax
test ecx, ecx
setne al
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100233d1
mov dword [esi + 0x2d0], 1
mov ecx, edi
call fcn.1002f4a8
cmp eax, 6
jl 0x1002348c
push 0x230
call fcn.1005bf24
test eax, eax
pop ecx
je 0x10023404
mov ecx, dword [ebp - 4]
push dword [ecx + 0x1e0]
mov ecx, eax
call fcn.1002be99
mov esi, eax
jmp 0x10023406
xor esi, esi
test esi, esi
je 0x100236f3
mov ecx, esi
call fcn.1002c0cb
mov eax, dword [ebp - 8]
mov dword [ebx + 0x20], esi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x74], ebx
mov dword [esi + 0x68], eax
mov ecx, dword [ebx]
push esi
mov dword [esi + 0x70], ecx
call fcn.100220bd
xor edi, edi
push ebx
mov ecx, esi
mov dword [esi + 0x40], edi
mov dword [esi + 0x60], edi
mov dword [esi], edi
mov dword [esi + 0x64], 2
call fcn.1002cf75
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x148]
push dword [eax + 0x1e8]
call fcn.1003311b
cmp dword [ebp + 0xc], edi
jne 0x10023476
mov ecx, dword [ebx + 0xa8]
test ecx, ecx
je 0x10023476
call fcn.1000f8f5
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2cc], 0
jne 0x100236f3
push ebx
jmp 0x100236ee
cmp dword [ebp + 0xc], 0
jne 0x100236f3
mov ecx, dword [ebx + 0xa8]
test ecx, ecx
je 0x100236f3
call fcn.1000f8f5
jmp 0x100236f3
push 0x230
call fcn.1005bf24
test eax, eax
pop ecx
je 0x100234d1
mov ecx, dword [ebp - 4]
push dword [ecx + 0x1e0]
mov ecx, eax
call fcn.1002be99
mov esi, eax
jmp 0x100234d3
xor esi, esi
test esi, esi
je 0x100236f3
mov ecx, esi
call fcn.1002c0cb
mov eax, dword [ebp - 8]
mov dword [ebx + 0x20], esi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x74], ebx
mov dword [esi + 0x68], eax
mov ecx, dword [ebx]
push esi
mov dword [esi + 0x70], ecx
call fcn.100220bd
mov ecx, edi
call fcn.1002f4a8
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 0x10]
and dword [esi + 4], 0
mov dword [esi], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], SysReAllocString
mov dword [esi + 0x14], 0x20000000
mov eax, dword [ebx + 0x10]
lea ecx, [esi + 0x148]
mov eax, dword [eax + 0x2c]
and dword [esi + 0x40], 0
mov dword [esi + 0x44], eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x34]
push dword [eax + 0x1e8]
call fcn.1003311b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x48], 0
je 0x100235af
mov dword [esi + 0x80], esi
push dword [eax + 0x50]
lea ecx, [esi + 0x78]
push dword [eax + 0x48]
call fcn.100012c2
xor eax, eax
lea ecx, [esi + 0x78]
push eax
push eax
push eax
push 0x200
call fcn.10001345
cmp dword [esi + 0x44], 0
jne 0x1002359b
test edi, edi
je 0x10023595
mov ecx, edi
call fcn.1002f4a8
cmp eax, 6
jl 0x1002359b
and dword [esi + 0x30], 0
jmp 0x100235af
xor eax, eax
lea ecx, [esi + 0x78]
push eax
push eax
push eax
push 1
pop edi
push edi
call fcn.10001345
mov dword [esi + 0x30], edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x10023294
mov edi, dword [eax + 0x14]
test edi, edi
je 0x10023294
test byte [edi + 0x34], 1
jne 0x1002360a
mov eax, dword [ebp - 4]
push dword [edi + 0x18]
add eax, 0x510
mov dword [ebp + 0xc], eax
mov ecx, dword [eax]
call fcn.100366da
cmp eax, 0xffffffff
je 0x100235f7
push edi
push eax
mov eax, dword [ebp + 0xc]
push esi
mov ecx, dword [eax]
call fcn.1003630a
jmp 0x1002360a
push 0
push 0
push edi
lea ecx, [esi + 0x148]
push dword [edi + 0x18]
call fcn.10031a9d
mov edi, dword [edi + 0x14]
jmp 0x100235c0
movzx edx, word [esi + 0x2fc]
cmp dword [ebx + 0x14], edx
push 1
pop ecx
jne 0x1002364a
mov edx, dword [ebx + 4]
cmp edx, dword [esi + 0x2f4]
jne 0x1002364a
cmp dword [esi + 0x2f8], eax
jne 0x1002364a
mov ax, word [ebx + 0x18]
cmp ax, word [esi + 0x2fe]
jne 0x1002364a
mov ecx, dword [esi + 0x2dc]
mov dword [esi + 0x2d8], ebx
push ecx
push ebx
mov ecx, esi
call fcn.10023d69
mov ecx, edi
call fcn.1002f4a8
cmp eax, 6
jl 0x100236f3
push 0x230
call fcn.1005bf24
test eax, eax
pop ecx
je 0x10023686
mov ecx, dword [ebp - 4]
push dword [ecx + 0x1e0]
mov ecx, eax
call fcn.1002be99
mov esi, eax
jmp 0x10023688
xor esi, esi
test esi, esi
je 0x100236f3
mov ecx, esi
call fcn.1002c0cb
mov eax, dword [ebp - 8]
mov dword [ebx + 0x20], esi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x14]
push esi
mov dword [esi + 0x68], eax
mov dword [esi + 0x74], ebx
mov ecx, dword [ebx]
mov dword [esi + 0x70], ecx
call fcn.100220bd
xor edi, edi
push ebx
mov dword [esi + 0x40], edi
mov dword [esi], edi
mov dword [esi + 0x60], edi
mov ecx, esi
mov dword [esi + 0x64], 2
call fcn.1002cf75
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x148]
push dword [eax + 0x1e8]
call fcn.1003311b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2cc], edi
jne 0x100236f3
push ebx
mov ecx, eax
call fcn.10022da2
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8