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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x458
push esi
push edi
push 0x400
lea eax, [esp + 0x64]
mov dword [esp + 0x44], edx
push 0
push eax
mov esi, ecx
call fcn.1002da40
xor edi, edi
add esp, 0xc
mov dword [esp + 0x28], edi
mov dword [esp + 0x44], edi
test esi, esi
je 0x10003945
call fcn.1000ab60
cmp dword [0x1011943c], edi
je 0x100033fa
push ecx
lea edx, [esp + 0x64]
mov ecx, esi
call fcn.10002e30
add esp, 4
lea esi, [esp + 0x60]
sub esp, 0x14
mov ecx, esi
call fcn.1000b3b0
add esp, 0x14
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
je 0x10003945
sub esp, 0x10
mov ecx, eax
call fcn.1000b760
add esp, 0x10
mov dword [esp + 0x48], eax
test eax, eax
je 0x1000392e
sub esp, 0x10
mov ecx, eax
call fcn.1000b990
mov esi, eax
add esp, 0x10
mov dword [esp + 0x20], esi
test esi, esi
je 0x10003917
mov esi, dword [esi + 0x3c]
mov ecx, 0x10b
add esi, eax
mov dword [esp + 0x1c], esi
cmp word [esi + 0x18], cx
jne 0x1000390c
push 4
push 0
push dword [esi + 0x50]
or ecx, 0xffffffff
push 0
push 0
call fcn.1000bb40
mov ecx, dword [esi + 0x54]
add esp, 0x14
mov edi, eax
mov dword [esp + 0x14], ecx
cdq
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x20], edx
or ecx, 0xffffffff
cdq
push edx
push eax
push dword [esp + 0x28]
lea edx, [esp + 0x44]
mov dword [esp + 0x40], edi
push dword [esp + 0x24]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.10001700
add esp, 0x18
test eax, eax
js 0x100034dc
push 0
push dword [esp + 0x18]
or ecx, 0xffffffff
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.10001900
add esp, 0x10
jmp 0x100034e6
mov ecx, 0x307
call fcn.10006110
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], 0
mov edx, dword [ecx + 0x3c]
add edx, 0x10c
cmp ax, word [esi + 6]
jae 0x100035ac
add edx, ecx
mov dword [esp + 0x14], edx
lea ecx, [ecx]
mov eax, dword [edx - 4]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
add eax, ecx
mov dword [esp + 0x50], 0
cdq
mov esi, eax
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x14]
mov ecx, edx
push 0
push dword [esp + 0x1c]
mov eax, dword [eax - 8]
push ecx
add eax, edi
or ecx, 0xffffffff
cdq
push esi
push edx
mov dword [esp + 0x38], edx
lea edx, [esp + 0x64]
push eax
mov dword [esp + 0x48], eax
call fcn.10001700
add esp, 0x18
test eax, eax
js 0x1000357a
push 0
push dword [esp + 0x1c]
or ecx, 0xffffffff
push dword [esp + 0x2c]
push dword [esp + 0x3c]
call fcn.10001900
add esp, 0x10
jmp 0x10003584
mov ecx, 0x307
call fcn.10006110
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc ecx
add edx, 0x28
mov dword [esp + 0x10], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x20]
jb 0x10003510
mov edx, dword [edi + 0x3c]
add edx, edi
mov dword [esp + 0x18], edx
mov eax, dword [edx + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov dword [edx + 0x34], eax
mov eax, dword [edx + 0xa0]
test eax, eax
je 0x100036ff
mov ecx, dword [edx + 0xa4]
test ecx, ecx
je 0x100036ff
lea esi, [eax + edi]
add eax, ecx
add eax, edi
mov dword [esp + 0x10], esi
cmp esi, eax
jae 0x100036ff
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100036ff
mov edx, dword [esi]
lea eax, [ecx - 8]
add edx, edi
add esi, 8
shr eax, 1
je 0x100036db
movzx edi, word [esi]
dec eax
mov cx, di
mov dword [esp + 0x1c], eax
shr cx, 0xc
mov eax, edi
cmp cx, 0xa
jne 0x1000364a
mov ecx, dword [esp + 0x24]
and edi, 0xfff
mov eax, dword [edi + edx]
sub eax, dword [esp + 0x14]
mov dword [edi + edx], eax
movzx eax, word [esi]
and eax, 0xfff
add dword [eax + edx], ecx
jmp 0x100036bf
cmp cx, 3
jne 0x1000366d
mov ecx, dword [esp + 0x14]
and eax, 0xfff
sub dword [eax + edx], ecx
movzx eax, word [esi]
mov ecx, dword [esp + 0x24]
and eax, 0xfff
add dword [eax + edx], ecx
jmp 0x100036bf
cmp cx, 1
jne 0x1000369c
and eax, 0xfff
lea ecx, [eax + edx]
mov eax, dword [esp + 0x14]
shr eax, 0x10
sub word [ecx], ax
movzx ecx, word [esi]
mov eax, dword [esp + 0x24]
and ecx, 0xfff
add ecx, edx
shr eax, 0x10
add word [ecx], ax
jmp 0x100036bf
cmp cx, 2
jne 0x100036bf
mov ecx, dword [esp + 0x14]
and eax, 0xfff
sub word [eax + edx], cx
movzx eax, word [esi]
mov ecx, dword [esp + 0x24]
and eax, 0xfff
add word [eax + edx], cx
mov eax, dword [esp + 0x1c]
add esi, 2
test eax, eax
jne 0x10003612
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 4]
jmp 0x100036df
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [edx + 0xa4]
add eax, dword [edx + 0xa0]
add eax, edi
cmp esi, eax
jb 0x100035f5
mov eax, dword [edx + 0x80]
test eax, eax
je 0x10003876
cmp dword [edx + 0x84], 0
je 0x10003876
cmp dword [eax + edi], 0
lea esi, [eax + edi]
mov dword [esp + 0x10], esi
je 0x10003876
jmp 0x10003730
mov eax, dword [esi + 0xc]
add eax, edi
push 0x104
push eax
mov dword [esp + 0x38], eax
call fcn.10030a26
mov dword [esp + 0x24], eax
inc eax
push 2
push eax
mov dword [esp + 0x24], eax
call fcn.1002fd34
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1000385e
push dword [esp + 0x1c]
lea eax, [esp + 0x48]
push dword [esp + 0x34]
push dword [esp + 0x1c]
push edi
push eax
call fcn.1003087b
add esp, 0x14
push 4
push str.api_
push edi
call fcn.10030907
add esp, 0xc
test eax, eax
je 0x100037a4
push 4
push str.ext_
push edi
call fcn.10030907
add esp, 0xc
test eax, eax
jne 0x100037f6
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x28]
push eax
mov edx, edi
call fcn.10002b00
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100037f6
push edi
call fcn.100305b5
mov ecx, dword [esp + 0x2c]
add esp, 4
inc ecx
push 2
push ecx
call fcn.1002fd34
mov edi, eax
add esp, 8
test edi, edi
je 0x1000385e
mov eax, dword [esp + 0x28]
add eax, eax
push eax
push dword [esp + 0x20]
push edi
call fcn.1002f7c0
add esp, 0xc
mov ecx, edi
call fcn.10003950
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10003855
mov eax, dword [esi]
mov edx, dword [esi + 0x10]
test eax, eax
jne 0x10003810
mov eax, edx
mov ecx, dword [esp + 0x2c]
lea esi, [eax + ecx]
mov eax, dword [esi]
test eax, eax
je 0x10003851
sub edx, esi
add edx, ecx
test eax, eax
mov dword [esp + 0x30], edx
jns 0x1000382e
movzx edx, ax
jmp 0x10003833
lea edx, [ecx + 2]
add edx, eax
mov ecx, dword [esp + 0x1c]
push edi
call fcn.10003cc0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [edx + esi], eax
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10003827
mov esi, dword [esp + 0x10]
push edi
call fcn.100305b5
add esp, 4
mov edi, dword [esp + 0x2c]
add esi, 0x14
mov dword [esp + 0x10], esi
cmp dword [esi], 0
jne 0x10003730
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x78]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10003908
cmp dword [edx + 0x7c], 0
je 0x10003908
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [eax + edi + 0x14], ecx
jbe 0x10003908
jmp 0x100038a0
mov eax, dword [eax + edi + 0x1c]
lea eax, [eax + ecx*4]
mov edx, dword [eax + edi]
mov dword [esp + 0x10], eax
test edx, edx
je 0x100038f9
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x78]
cmp esi, edx
ja 0x100038f9
mov eax, dword [eax + 0x7c]
add eax, esi
cmp edx, eax
jae 0x100038f9
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp edx, dword [eax + esi]
je 0x100038f9
mov edx, dword [esp + 0x14]
push dword [esp + 0x40]
mov edx, dword [edx + edi + 0x10]
add edx, ecx
mov ecx, edi
call fcn.10003cc0
test eax, eax
je 0x100038f5
mov ecx, dword [esp + 0x10]
sub eax, esi
mov dword [ecx + edi], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [eax + edi + 0x14]
jb 0x100038a0
mov eax, dword [esp + 0x20]
cdq
push edx
push eax
call fcn.1000bac0
add esp, 8
mov ecx, dword [esp + 0x48]
call fcn.10001260
test eax, eax
jns 0x1000392e
mov ecx, 0x307
call fcn.10006110
mov ecx, dword [esp + 0x4c]
call fcn.10001260
test eax, eax
jns 0x10003945
mov ecx, 0x307
call fcn.10006110
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret