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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x10042195
push eax
call dword [0x101f0ebc]
add esp, 4
mov edi, dword [ebx + 0x18]
cmp byte [edi + 9], 0
je 0x100421ac
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100421ac
call fcn.10037920
mov eax, dword [ebx]
cmp eax, esi
je 0x100421c3
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x100421c3
push eax
call dword [0x101f0ebc]
add esp, 4
mov edi, dword [ebx + 0x1c]
cmp edi, esi
je 0x100421d8
cmp edi, 5
je 0x100421d8
cmp edi, 6
jne 0x10042b91
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], esi
cmp dword [ebx], esi
je 0x1004220e
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x1004220e
mov dword [esp + 0xc], 5
jmp 0x100423d4
mov dword [esp + 0xc], esi
cmp dword [ebx + 0xc], esi
jne 0x10042246
push 2
push ecx
call fcn.1003a350
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, esi
jne 0x100423d4
mov eax, dword [ebx + 4]
lea ecx, [ebx + 8]
push ecx
push 1
mov dword [ebx + 0xc], 1
call fcn.10040740
add esp, 8
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 0
jne 0x100423d4
cmp byte [edi + 9], 0
mov ebx, dword [edi + 4]
mov dword [esp + 0xc], esi
je 0x1004226e
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1004226e
call fcn.10037920
mov al, byte [edi + 8]
cmp al, 2
je 0x100423af
cmp al, 1
je 0x100423af
movzx ecx, word [ebx + 0x16]
test cl, 0x40
je 0x1004229e
mov edx, dword [ebx + 0x4c]
cmp dword [edx], esi
je 0x1004229e
mov dword [esp + 0xc], 0x106
jmp 0x100423af
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
je 0x100422e5
cmp dword [eax + 0x4c], edi
je 0x100422bf
test byte [eax + 0x16], 0x20
je 0x100422bf
mov dword [esp + 0xc], 0x106
jmp 0x100423af
mov eax, dword [eax + 0x48]
cmp eax, esi
je 0x100422e5
mov edx, 1
jmp 0x100422d0
cmp dword [eax], edi
je 0x100422de
cmp dword [eax + 4], edx
jne 0x100422de
cmp byte [eax + 8], dl
jne 0x10042291
mov eax, dword [eax + 0xc]
cmp eax, esi
jne 0x100422d0
mov eax, ecx
and eax, 0xfff7
mov dword [esp + 0xc], esi
mov word [ebx + 0x16], ax
cmp dword [ebx + 0x2c], esi
jne 0x10042300
or eax, 8
mov word [ebx + 0x16], ax
cmp dword [ebx + 0xc], 0
jne 0x10042315
call fcn.10039fb0
mov dword [esp + 0xc], eax
test eax, eax
je 0x10042300
jmp 0x1004231c
cmp dword [esp + 0xc], 0
je 0x1004233c
cmp byte [ebx + 0x14], 0
jne 0x1004233c
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1004233c
mov dword [ebx + 0xc], 0
mov eax, dword [eax + 0x44]
push eax
call fcn.10033d00
add esp, 4
cmp byte [esp + 0xc], 5
jne 0x1004237b
cmp byte [ebx + 0x14], 0
jne 0x1004237b
mov esi, dword [ebx + 4]
add esi, 0x1bc
je 0x1004237b
mov ecx, dword [esi]
test ecx, ecx
je 0x1004237b
mov eax, dword [esi + 8]
test eax, eax
js 0x1004237b
mov edx, dword [esi + 4]
push eax
push edx
call ecx
add esp, 8
test eax, eax
je 0x10042374
inc dword [esi + 8]
jmp 0x10042300
mov dword [esi + 8], 0xffffffff
cmp dword [esp + 0xc], 0
jne 0x100423af
cmp byte [edi + 8], 0
jne 0x100423a1
inc dword [ebx + 0x28]
cmp byte [edi + 9], 0
je 0x100423a1
mov byte [edi + 0x28], 1
mov eax, dword [ebx + 0x48]
lea ecx, [edi + 0x20]
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x48], ecx
mov byte [edi + 8], 1
cmp byte [ebx + 0x14], 1
jae 0x100423af
mov byte [ebx + 0x14], 1
cmp byte [edi + 9], 0
je 0x100423c1
dec dword [edi + 0xc]
jne 0x100423c1
mov esi, edi
call fcn.100378e0
mov edx, dword [esp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], 1
cmp dword [esp + 0xc], 0
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], eax
jne 0x10042410
cmp eax, 5
jne 0x10042410
cmp edx, esi
je 0x10042410
mov dword [esp + 0xc], 8
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x1004242c
cmp dword [esp + 0x18], eax
jge 0x100424a4
mov esi, dword [ebx + 0x10]
cmp esi, dword [esp + 0x20]
ja 0x100424a4
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x100424e9
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x101f0f78]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp esi, eax
je 0x10042493
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push esi
mov eax, 2
call fcn.10033930
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10042493
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 4]
push 0
push eax
push esi
push ebx
call fcn.10041fb0
push edi
mov dword [esp + 0x20], eax
call fcn.10033d00
add esp, 0x14
mov eax, 1
add dword [ebx + 0x10], eax
add dword [esp + 0x18], eax
jmp 0x1004241f
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x100424e9
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 0x10]
mov ecx, esi
sub ecx, eax
inc ecx
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x20], ecx
cmp eax, esi
ja 0x100424f6
cmp dword [ebx + 0x28], 0
jne 0x100429bf
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x58]
mov dword [ebx + 0x2c], ecx
mov dword [eax + 0x58], ebx
mov dword [ebx + 0x28], 1
jmp 0x100429bf
cmp eax, 0x65
jne 0x100429bf
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x1004254c
mov edx, dword [ebp + 8]
mov esi, dword [edx + 4]
cmp byte [esi + 9], 0
je 0x10042516
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x10042516
mov edi, esi
call fcn.10037920
mov eax, dword [esi + 4]
mov dword [eax + 0x2c], 0
mov ebx, dword [esi + 4]
call fcn.1003a250
cmp byte [esi + 9], 0
mov edi, eax
je 0x1004253a
dec dword [esi + 0xc]
jne 0x1004253a
call fcn.100378e0
mov dword [esp + 0xc], edi
mov esi, 1
test edi, edi
je 0x1004254c
cmp edi, 0x65
jne 0x1004256a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
inc edx
mov eax, ecx
mov eax, dword [eax + 4]
push edx
mov ebx, 1
call fcn.100407c0
add esp, 4
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x100429bf
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
je 0x10042583
call fcn.10060900
cmp dword [esp + 0x3c], 5
jne 0x100425a3
mov eax, dword [edi + 4]
push 2
call fcn.10041ae0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100429bf
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x10], ebx
jge 0x100425da
mov eax, ebx
cdq
idiv dword [esp + 0x10]
mov ecx, eax
lea eax, [ecx + esi - 1]
cdq
idiv ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
xor edx, edx
mov edi, eax
mov eax, dword [0x101f0f78]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x100425e6
dec edi
jmp 0x100425e6
mov eax, dword [esp + 0x10]
cdq
idiv ebx
mov edi, eax
imul edi, esi
cmp dword [esp + 0x10], ebx
jge 0x100428da
mov eax, dword [esp + 0x10]
cdq
mov ecx, eax
mov ebx, edx
push ebx
mov eax, esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
call fcn.1017f230
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x18]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x20], edx
mov ebx, edi
cmp ebx, esi
ja 0x1004269b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x101f0f78]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp ebx, eax
je 0x10042691
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push ebx
xor eax, eax
call fcn.10033930
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10042691
mov edi, dword [esp + 0x3c]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0x98]
jbe 0x1004267d
push edi
call fcn.10034120
add esp, 4
jmp 0x10042684
mov eax, edi
call fcn.10033f70
push edi
mov dword [esp + 0x10], eax
call fcn.10033d00
add esp, 4
inc ebx
cmp dword [esp + 0xc], 0
je 0x10042625
jmp 0x100426b6
cmp dword [esp + 0xc], 0
jne 0x100426b6
mov eax, dword [esp + 0x14]
push 1
push 0
call fcn.10034430
add esp, 8
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x24]
mov esi, dword [0x101f0f78]
mov ecx, dword [esp + 0x34]
lea eax, [esi + edx]
cdq
cmp edx, ecx
jg 0x100426da
jl 0x100426d4
cmp eax, dword [esp + 0x30]
jae 0x100426da
mov dword [esp + 0x44], edx
jmp 0x100426e2
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
cmp dword [esp + 0xc], 0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
lea eax, [esi + ecx]
cdq
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
jne 0x100429bf
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [esp + 0x44]
jg 0x10042845
jl 0x1004271d
cmp esi, dword [esp + 0x40]
jae 0x10042845
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push ebx
push esi
mov dword [esp + 0x38], 0
call fcn.1017f270
mov edi, dword [esp + 0x2c]
inc eax
push eax
xor eax, eax
call fcn.10033930
mov edi, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10042775
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push ebx
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov dword [esp + 0xc], eax
test edi, edi
je 0x10042825
test byte [edi + 0x18], 0x40
mov ebx, dword [edi + 0x10]
je 0x100427c7
mov ecx, dword [ebx + 0x88]
dec dword [ebx + 0x78]
mov dword [edi + 0xc], ecx
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], edi
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x14]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.1017f230
push edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push esi
call edx
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x100427ce
mov eax, edi
call fcn.1002e710
cmp dword [ebx + 0x78], 0
jne 0x10042825
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x10042825
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x10042820
test al, al
je 0x10042820
cmp al, 2
jb 0x1004280e
mov eax, dword [0x101f76ac]
test eax, eax
je 0x100427fa
call eax
mov eax, ebx
call fcn.10034600
mov eax, dword [0x101f76b0]
test eax, eax
je 0x10042820
call eax
jmp 0x10042820
cmp byte [ebx + 4], 0
jne 0x10042820
push 0
push 0
call fcn.10030d00
add esp, 8
call fcn.10030b90
add esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
adc dword [esp + 0x1c], ecx
cmp dword [esp + 0xc], 0
mov dword [esp + 0x18], esi
je 0x10042703
jmp 0x100429bf
cmp dword [esp + 0xc], 0
jne 0x100429bf
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
lea eax, [esp + 0x48]
push eax
push esi
call ecx
add esp, 8
test eax, eax
jne 0x1004288f
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x4c], ecx
jl 0x1004288f
jg 0x1004287e
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x30]
jbe 0x1004288f
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
push esi
call edx
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100429bf
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], eax
je 0x100428c2
mov eax, dword [ecx]
push 0
push 0x15
push ecx
mov ecx, dword [eax + 0x28]
call ecx
add esp, 0xc
cmp eax, 0xc
jne 0x100428be
xor eax, eax
jmp 0x100428c2
test eax, eax
jne 0x100428ed
cmp byte [esi + 7], 0
jne 0x100428ed
movzx ecx, byte [esi + 0xb]
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
jmp 0x100428ea
mov eax, dword [esp + 0x14]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.10034430
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100429bf
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
cmp byte [edi + 8], al
je 0x100429b7
cmp byte [edi + 9], al
je 0x1004291a
inc dword [edi + 0xc]
cmp byte [edi + 0xa], al
jne 0x1004291a
call fcn.10037920
mov cl, 2
cmp byte [edi + 8], cl
jne 0x100429a0
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x10042ab3
cmp byte [esi + 0x10], cl
jne 0x10042a86
cmp byte [esi + 4], al
je 0x10042a86
cmp byte [esi + 5], 1
jne 0x10042a86
mov byte [esi + 0x10], 1
dec dword [edi + 0x14]
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 0x3c]
mov byte [eax + 0x14], 1
test ebx, ebx
je 0x10042999
cmp dword [ebx + 8], 0
je 0x1004298c
lea esi, [ebx + 0xc]
mov dword [esp + 0x28], 0x7d
mov eax, dword [esi]
push eax
call fcn.1002e190
add esp, 4
add esi, 4
dec dword [esp + 0x28]
jne 0x10042978
push ebx
call fcn.10025d60
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [eax + 0x3c], 0
call fcn.1003b130
cmp byte [edi + 9], 0
je 0x100429b7
dec dword [edi + 0xc]
jne 0x100429b7
mov esi, edi
call fcn.100378e0
mov dword [esp + 0xc], 0x65
cmp dword [esp + 0x2c], 0
je 0x10042b6f
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x18]
cmp byte [edi + 8], 2
jne 0x10042a2a
cmp byte [edi + 9], 0
mov esi, dword [edi + 4]
je 0x100429ed
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100429ed
call fcn.10037920
cmp byte [esi + 0x11], 0
je 0x100429fc
call fcn.1003aed0
test eax, eax
jne 0x10042a18
cmp byte [esi + 0x13], 0
je 0x10042a0a
mov edx, dword [esi]
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x18], eax
mov eax, dword [esi]
push 0
push 0
call fcn.10034430
add esp, 8
cmp byte [edi + 9], 0
je 0x10042a2a
dec dword [edi + 0xc]
jne 0x10042a2a
mov esi, edi
call fcn.100378e0
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x18]
cmp byte [edi + 8], 0
je 0x10042b6f
cmp byte [edi + 9], 0
je 0x10042a4e
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x10042a4e
call fcn.10037920
cmp byte [edi + 8], 2
jne 0x10042b58
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x10042b5d
cmp byte [esi + 0x10], 2
jne 0x10042ad8
cmp byte [esi + 4], al
je 0x10042ad8
cmp byte [esi + 5], 1
jne 0x10042ad8
mov byte [esi + 0x10], 1
jmp 0x10042b09
movzx edx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push edx
mov ebx, esi
call fcn.10030d00
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x10042aac
cmp ecx, 0xa
jne 0x10042ab3
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
mov ebx, eax
test ebx, ebx
je 0x10042955
cmp byte [edi + 9], 0
je 0x10042acf
dec dword [edi + 0xc]
jne 0x10042acf
mov esi, edi
call fcn.100378e0
mov dword [esp + 0xc], ebx
jmp 0x100429bf
movzx edx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push edx
mov ebx, esi
call fcn.10030d00
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x10042afe
cmp ecx, 0xa
jne 0x10042b05
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
test eax, eax
jne 0x10042b5d
dec dword [edi + 0x14]
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + 0x3c]
mov byte [eax + 0x14], 1
test ebx, ebx
je 0x10042b51
cmp dword [ebx + 8], 0
je 0x10042b44
lea esi, [ebx + 0xc]
mov dword [esp + 0x2c], 0x7d
lea esp, [esp]
mov eax, dword [esi]
push eax
call fcn.1002e190
add esp, 4
add esi, 4
dec dword [esp + 0x2c]
jne 0x10042b30
push ebx
call fcn.10025d60
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [eax + 0x3c], 0
call fcn.1003b130
cmp byte [edi + 9], 0
je 0x10042b6f
dec dword [edi + 0xc]
jne 0x10042b6f
mov esi, edi
call fcn.100378e0
cmp dword [esp + 0xc], 0xc0a
jne 0x10042b81
mov dword [esp + 0xc], 7
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
mov dword [ecx + 0x1c], edx
mov edi, edx
mov ebx, ecx
xor esi, esi
mov eax, dword [ebx]
cmp eax, esi
je 0x10042ba8
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x10042ba8
push eax
call dword [0x101f0ec4]
add esp, 4
mov esi, dword [ebx + 0x18]
cmp byte [esi + 9], 0
je 0x10042bbe
dec dword [esi + 0xc]
jne 0x10042bbe
call fcn.100378e0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10042bd2
push eax
call dword [0x101f0ec4]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret