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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x410904
sub esp, 0x70
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + 0x14]
mov ebp, dword [0x71a0a8]
mov ecx, dword [esp + 0x74]
sub ecx, ebp
mov ebp, ecx
shr ecx, 2
mov esi, dword [0x71a0a0]
shr ebp, 4
sub esi, ebp
lea ebp, [esi - 1]
mov esi, ecx
and ecx, 3
mov edi, dword [esp + 0x78]
cmp edi, 8
je 0x41080c
mov eax, edi
movzx edi, byte [edx + 0xf]
xchg edi, eax
test al, 0x40
xchg edi, eax
jne 0x4107dc
mov dword [esp + 0x40], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x60], ebx
mov ecx, dword [edx]
mov dword [esp + 0x3c], ecx
mov edi, dword [esp + 0x7c]
cmp ecx, edi
jae 0x4107cb
mov ebp, dword [edx + 4]
shr ebp, 2
cmp ebp, 0x19
ja 0x4107a3
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x4c], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
jmp 0x4104a7
lea eax, [esi + 8]
movzx edx, byte [ebx]
mov ecx, esi
shl edx, cl
cmp ecx, 0x20
sbb ecx, ecx
and edx, ecx
mov ecx, dword [esp + 0x20]
or ecx, edx
mov edx, ebx
inc edx
mov ebx, edx
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
cmp esi, ebp
jb 0x410470
mov ebx, ecx
shr ecx, 2
lea ebp, [ecx + ecx]
cmp ebp, 0x19
ja 0x410798
mov ebp, dword [esp + 0x20]
mov esi, ecx
jmp 0x4104e1
mov dword [esp + 0x20], ebp
shl ebp, cl
cmp ecx, 0x20
sbb eax, eax
and ebp, eax
mov eax, dword [esp + 0x20]
or ebp, eax
add ecx, ecx
mov eax, dword [esp + 0x78]
cmp ecx, 0x20
jbe 0x4104c8
xchg esi, eax
test al, al
xchg esi, eax
je 0x4108fd
mov ecx, edx
xchg esi, eax
movzx edx, al
xchg esi, eax
mov ebx, 0x19
movzx ebx, bl
mov eax, ebx
mov edi, edx
xor edx, edx
div di
movzx edx, al
imul edx, esi
mov eax, ecx
mov ecx, edx
mov ebx, 1
shl ebx, cl
cmp ecx, 0x20
sbb esi, esi
and esi, ebx
lea ebx, [esi - 1]
and ebp, ebx
xor edx, edx
xor ebx, ebx
mov esi, ecx
test edx, edx
je 0x410791
movzx edi, byte [edx]
inc edx
mov ecx, 8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x3c]
cmp ebp, esi
jne 0x410760
mov ebp, dword [eax + 4]
shr ebp, 2
test ebp, ebp
je 0x410888
cmp ebp, 2
jae 0x410759
mov eax, 2
mov ebp, dword [esp + 0x40]
test ebp, 3
jne 0x410870
mov ebp, edi
and edi, 0xf
or edi, 0xd0
cmp eax, 4
ja 0x410603
mov ecx, 4
mov edx, dword [esp + 0x6c]
cmp ecx, eax
jbe 0x4105ff
mov ebx, ecx
sub ecx, eax
add ecx, 0xfffffffc
neg ecx
mov eax, 1
shl eax, cl
cmp ecx, 0x20
sbb ebp, ebp
and eax, ebp
dec eax
mov ebp, eax
shl eax, 4
or eax, ebp
and edi, eax
mov eax, dword [esp + 0x78]
shr eax, 2
cmp ebx, eax
ja 0x4105f9
xchg edi, eax
mov byte [edx], al
xchg edi, eax
lea ecx, [ebx + 4]
dec edx
jmp 0x4105de
mov byte [edx], 0
add ecx, 4
mov ebx, edx
dec ebx
mov edx, ebx
cmp ecx, eax
jbe 0x4105d3
xor ebx, ebx
add eax, 2
cmp eax, ecx
jne 0x4105f5
movzx eax, byte [edx]
and eax, 0xffffffcc
or ebx, eax
mov byte [edx], bl
add esp, 0x70
ret
mov ecx, ebx
mov ebx, edi
jmp 0x4105e4
mov ebx, ecx
jmp 0x4105be
mov dword [esp + 0x64], ebx
mov esi, dword [esp + 0x6c]
xchg edi, eax
mov byte [esi], al
xchg edi, eax
shr ebp, 4
lea edi, [ecx - 8]
dec esi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
jmp 0x410651
mov edi, dword [esp + 0x6c]
xchg ebp, eax
mov byte [edi], al
xchg ebp, eax
shr ebx, 4
mov ebp, edi
dec ebp
mov edi, dword [esp + 0x38]
mov dword [esp + 0x1c], esi
mov edi, ecx
mov esi, ebp
mov ecx, dword [esp + 0x38]
mov ebp, ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ebp
and ebp, 0xf
or ebp, 0xf0
mov edi, dword [esp + 0x1c]
add edi, 4
cmp edi, eax
jae 0x410750
xchg ebp, eax
mov byte [esi], al
xchg ebp, eax
mov ebp, dword [esp + 0x30]
shr ebp, 4
dec esi
mov dword [esp + 0x6c], esi
cmp edx, ebx
je 0x4106cf
mov edi, dword [esp + 0x24]
cmp edi, 8
jae 0x4106c8
movzx ebx, byte [edx]
mov ecx, edi
shl ebx, cl
cmp ecx, 0x20
sbb esi, esi
and ebx, esi
or ebp, ebx
inc edx
mov ebx, ebp
and ebp, 0xf
or ebp, 0xf0
mov esi, dword [esp + 0x1c]
add esi, 8
cmp esi, eax
jb 0x41062d
mov ecx, dword [esp + 0x6c]
mov edx, ecx
mov edi, ebp
mov ecx, esi
jmp 0x410599
add edi, 0xfffffff8
mov ecx, edi
jmp 0x41069f
test edx, edx
je 0x410718
movzx edx, byte [edx]
mov ecx, dword [esp + 0x24]
shl edx, cl
cmp ecx, 0x20
sbb edi, edi
and edx, edi
or ebp, edx
mov edx, dword [esp + 0x2c]
lea edi, [ecx + edx]
cmp edi, 8
jae 0x41070c
mov edx, dword [esp + 0x60]
movzx ebx, byte [edx]
mov ecx, edi
shl ebx, cl
cmp ecx, 0x20
sbb esi, esi
and ebx, esi
or ebp, ebx
mov ebx, edx
inc ebx
mov edx, ebx
jmp 0x41069f
lea ecx, [ecx + edx - 8]
mov edx, dword [esp + 0x60]
mov ebx, edx
jmp 0x410708
mov edi, dword [esp + 0x24]
cmp edi, 8
jae 0x410746
mov ecx, edi
mov ebx, dword [esp + 0x38]
shl ebx, cl
cmp ecx, 0x20
sbb esi, esi
and ebx, esi
or ebx, ebp
mov ebp, dword [esp + 0x2c]
lea esi, [ecx + ebp]
lea ecx, [esi - 8]
mov ebp, ebx
mov ebx, edx
mov edx, dword [esp + 0x60]
jmp 0x410708
mov esi, edi
mov ebx, ebp
mov ebp, dword [esp + 0x2c]
jmp 0x410739
mov ecx, esi
mov esi, edi
jmp 0x4106bd
mov eax, ebp
jmp 0x410570
test esi, esi
je 0x4108f6
mov dword [esp + 0x5c], edx
mov eax, ebp
xor edx, edx
div esi
lea edx, [eax - 1]
imul edx, esi
mov eax, dword [esp + 0x80]
mov esi, dword [eax + 4]
lea ebp, [edx + esi]
shr ebp, 2
mov edx, dword [esp + 0x5c]
jmp 0x41055a
mov edi, ebp
jmp 0x41053c
mov eax, edx
mov ebp, dword [esp + 0x20]
jmp 0x410525
lea edi, [ebp + 7]
shr edi, 3
mov ebp, edi
dec edi
shr ecx, 2
shl edi, 3
sub ecx, edi
mov edi, ebx
lea edi, [ebp + edi - 1]
mov eax, edx
mov edx, ebx
mov ebx, edi
xor ebp, ebp
mov esi, ecx
xor ecx, ecx
jmp 0x41052b
mov eax, edx
mov edx, ebx
xor ecx, ecx
xor ebx, ebx
mov ebp, ecx
mov esi, ebp
jmp 0x41052b
mov esi, dword [edx + 4]
mov edx, dword [edx]
add ebx, 4
mov dword [esp + 0xc], edx
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call dbg.runtime.heapBitsSetTypeGCProg
add esp, 0x70
ret
mov eax, dword [edx]
cmp eax, 4
jne 0x41084d
mov eax, dword [esp + 0x7c]
cmp eax, 4
jne 0x41083b
movzx eax, byte [ebp]
mov edx, 0x33
shl edx, cl
not edx
and edx, eax
mov eax, 0x11
shl eax, cl
or edx, eax
mov byte [ebp], dl
add esp, 0x70
ret
movzx eax, byte [ebp]
mov edx, 0x13
shl edx, cl
or edx, eax
mov byte [ebp], dl
jmp 0x410837
movzx eax, byte [ebx]
and eax, 3
or eax, 0x10
movzx edx, byte [ebp]
mov ebx, 0x33
shl ebx, cl
not ebx
and ebx, edx
shl eax, cl
or eax, ebx
mov byte [ebp], al
add esp, 0x70
ret
lea eax, [0x5ff2ff]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call dbg.runtime.throw
ud2
mov dword [esp], eax
call dbg.runtime.(*_type).string
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
call dbg.runtime.printlock
lea eax, [0x5fb7d6]
mov dword [esp], eax
mov dword [esp + 4], 0x16
call dbg.runtime.printstring
call dbg.runtime.printsp
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dbg.runtime.printstring
call dbg.runtime.printnl
call dbg.runtime.printunlock
lea eax, [0x6020aa]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call dbg.runtime.throw
ud2
call dbg.runtime.panicdivide
ud2
call dbg.runtime.panicdivide
ud2
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.heapBitsSetType