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

Disassembly:
sub esp, 0x274
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x270], eax
mov ecx, dword [esp + 0x280]
mov edx, dword [str.________break_]
mov eax, dword [esp + 0x278]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x1014461c]
mov dword [esp + 0x54], edx
mov edx, dword [0x10144620]
mov dword [esp + 0x58], ecx
mov cx, word [0x10144624]
mov dword [esp + 0x5c], edx
mov dl, byte [0x10144626]
mov word [esp + 0x60], cx
mov ecx, dword [str.static_void]
mov byte [esp + 0x62], dl
mov edx, dword [0x10144610]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x10144614]
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
test eax, eax
jne 0x10041b2a
mov eax, 1
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.101407ce
add esp, 0x274
ret
push ebx
mov ebx, dword [esp + 0x280]
test ebx, ebx
jge 0x10041b48
mov dword [esp + 0x280], 0
mov ebx, dword [esp + 0x280]
push edi
push eax
call sym.leptonlib.dll_boxaGetCount
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x10041b76
lea eax, [edi + 1]
pop edi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.101407ce
add esp, 0x274
ret
push esi
lea edx, [esp + 0x34]
push edx
push str.hmttemplate2.txt
call sym.leptonlib.dll_arrayRead
mov esi, eax
add esp, 8
test esi, esi
je 0x10041c05
push 1
push esi
call sym.leptonlib.dll_sarrayCreateLinesFromString
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x10041c05
push esi
call dword [sym.imp.MSVCR90.dll_free]
push edi
call sym.leptonlib.dll_sarrayCreate
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x10041c05
xor esi, esi
test edi, edi
jle 0x10041bf1
push esi
push ebx
lea eax, [esp + 0x84]
push str.fhmt__d__d
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esp + 0x30]
push 1
lea ecx, [esp + 0x90]
push ecx
push edx
call sym.leptonlib.dll_sarrayAddString
inc esi
add esp, 0x1c
cmp esi, edi
jl 0x10041bc0
lea eax, [edi + edi]
push eax
call sym.leptonlib.dll_sarrayCreate
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10041c22
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.101407ce
add esp, 0x274
ret
xor esi, esi
test edi, edi
jle 0x10041c6a
mov ecx, dword [esp + 0x20]
push 0
push esi
push ecx
call sym.leptonlib.dll_sarrayGetString
push str._l_uint32___l_int32__l_int32__l_int32__l_uint32___l_int32__
push eax
lea edx, [esp + 0x90]
push str.static_void___s_s
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x40]
push 1
lea eax, [esp + 0x9c]
push eax
push ecx
call sym.leptonlib.dll_sarrayAddString
inc esi
add esp, 0x28
cmp esi, edi
jl 0x10041c28
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
push ebx
lea edx, [esp + 0x84]
push str.______________l_int32____fhmtgen_low__d__
push edx
call ebp
lea eax, [esp + 0x8c]
push eax
call sym.leptonlib.dll_stringNew
push ebx
lea ecx, [esp + 0x94]
push str.______________void_______fhmt__d___
push ecx
mov esi, eax
call ebp
lea edx, [esp + 0x9c]
push edx
call sym.leptonlib.dll_stringNew
push ebx
mov edi, eax
lea eax, [esp + 0xa4]
push str.___fhmtgen_low__d__
push eax
call ebp
lea ecx, [esp + 0xac]
push ecx
call sym.leptonlib.dll_stringNew
mov edx, dword [esp + 0x2bc]
push edx
mov ebx, eax
lea eax, [esp + 0xb4]
push str.fhmtgen_low__d_l_uint32__datad_
push eax
call ebp
lea ecx, [esp + 0xbc]
push ecx
call sym.leptonlib.dll_stringNew
add esp, 0x40
push 0
mov ebp, eax
call sym.leptonlib.dll_sarrayCreate
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x100421dc
push 0
push 0x10143f6c
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push edx
call sym.leptonlib.dll_sarrayParseRange
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call sym.leptonlib.dll_sarrayAppendRange
mov ecx, dword [esp + 0x3c]
push 0
push esi
push ecx
call sym.leptonlib.dll_sarrayAddString
push 0
push 0x10143f6c
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x68]
push ecx
push edx
push eax
call sym.leptonlib.dll_sarrayParseRange
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
add esp, 0x54
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call sym.leptonlib.dll_sarrayAppendRange
mov edx, dword [esp + 0x20]
push 0
push edi
push edx
call sym.leptonlib.dll_sarrayAddString
push 0
push 0x10143f6c
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
call sym.leptonlib.dll_sarrayParseRange
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
call sym.leptonlib.dll_sarrayAppendRange
mov edi, dword [esp + 0x7c]
add esp, 0x48
xor esi, esi
test edi, edi
jle 0x10041e1d
mov edi, edi
mov eax, dword [esp + 0x28]
push 1
push esi
push eax
call sym.leptonlib.dll_sarrayGetString
add esp, 0xc
test eax, eax
je 0x100421dc
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
call sym.leptonlib.dll_sarrayAddString
inc esi
add esp, 0xc
cmp esi, edi
jl 0x10041df0
push 0
push 0x10143f6c
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call sym.leptonlib.dll_sarrayParseRange
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call sym.leptonlib.dll_sarrayAppendRange
mov edx, dword [esp + 0x3c]
push 0
push ebx
push edx
call sym.leptonlib.dll_sarrayAddString
push 0
push 0x10143f6c
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x68]
push edx
push eax
push ecx
call sym.leptonlib.dll_sarrayParseRange
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x68]
add esp, 0x54
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call sym.leptonlib.dll_sarrayAppendRange
mov eax, dword [esp + 0x20]
push 0
push ebp
push eax
call sym.leptonlib.dll_sarrayAddString
push 0
push 0x10143f6c
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x4c]
push eax
push ecx
push edx
call sym.leptonlib.dll_sarrayParseRange
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
call sym.leptonlib.dll_sarrayAppendRange
add esp, 0x48
xor esi, esi
test edi, edi
jle 0x10041f78
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
push esi
lea ecx, [esp + 0x84]
push str.____case__d:
push ecx
call ebx
mov eax, dword [esp + 0x1c]
push 1
lea edx, [esp + 0x90]
push edx
push eax
call sym.leptonlib.dll_sarrayAddString
mov ecx, dword [esp + 0x3c]
push 0
push esi
push ecx
call sym.leptonlib.dll_sarrayGetString
push eax
lea edx, [esp + 0xa8]
push str._________s_datad__w__h__wpld__datas__wpls__
push edx
call ebx
mov ecx, dword [esp + 0x40]
push 1
lea eax, [esp + 0xb4]
push eax
push ecx
call sym.leptonlib.dll_sarrayAddString
mov eax, dword [esp + 0x4c]
push 1
lea edx, [esp + 0xa4]
push edx
push eax
call sym.leptonlib.dll_sarrayAddString
inc esi
add esp, 0x48
cmp esi, edi
jl 0x10041f01
push 0
push 0x10143f6c
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
push ecx
push edx
call sym.leptonlib.dll_sarrayParseRange
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call sym.leptonlib.dll_sarrayAppendRange
push 0
push 0x10143f6c
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x94]
push eax
push ecx
push edx
call sym.leptonlib.dll_sarrayParseRange
add esp, 0x48
push 0
push 0x10143f6c
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x70]
push edx
push eax
push ecx
call sym.leptonlib.dll_sarrayParseRange
push 0
push 0x10143f6c
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x78]
push ecx
push edx
push eax
call sym.leptonlib.dll_sarrayParseRange
xor ebp, ebp
add esp, 0x38
mov dword [esp + 0x30], ebp
test edi, edi
jle 0x100421c7
lea esp, [esp]
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x78]
push ecx
push edx
call sym.leptonlib.dll_sarrayAddString
mov eax, dword [esp + 0x30]
push 0
push ebp
push eax
call sym.leptonlib.dll_sarrayGetString
push eax
lea ecx, [esp + 0x9c]
push str._s_l_uint32__datad_
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x34]
push 1
lea edx, [esp + 0xa8]
push edx
push eax
call sym.leptonlib.dll_sarrayAddString
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call sym.leptonlib.dll_sarrayAppendRange
mov edx, dword [esp + 0x88]
add esp, 0x40
push ebp
push edx
call sym.leptonlib.dll_pixacompGetPixcomp
mov edi, eax
xor esi, esi
add esp, 8
cmp edi, esi
je 0x100421dc
mov ecx, edi
call fcn.100413a0
mov dword [esp + 0x5c], eax
cmp eax, esi
je 0x100421dc
push eax
mov eax, dword [esp + 0x14]
push eax
call sym.leptonlib.dll_sarrayConcatenate
lea ecx, [esp + 0x64]
push ecx
call sym.leptonlib.dll_sarrayDestroy
add esp, 0xc
xor ebx, ebx
cmp dword [edi], esi
mov dword [esp + 0x2c], esi
jle 0x10042138
mov ebp, dword [edi + 4]
lea ebx, [ebx]
test ebp, ebp
jle 0x1004212b
mov edx, dword [edi + 0x10]
mov ecx, dword [edx + esi*4]
mov edx, ebp
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, 1
jne 0x1004211a
inc ebx
jmp 0x10042123
cmp eax, 2
jne 0x10042123
inc dword [esp + 0x2c]
add ecx, 4
sub edx, 1
jne 0x10042110
inc esi
cmp esi, dword [edi]
jl 0x10042100
test ebx, ebx
jne 0x10042154
mov ebp, dword [esp + 0x30]
push str.____fprintf_stderr___Error_in_HMT:_no_hits_in_sel__n____n_n_n
call sym.leptonlib.dll_stringNew
push 0
push eax
mov eax, dword [esp + 0x1c]
push eax
call sym.leptonlib.dll_sarrayAddString
add esp, 0x10
jmp 0x100421b8
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call sym.leptonlib.dll_sarrayAppendRange
mov edx, dword [esp + 0x3c]
push edx
push ebx
call fcn.10041920
add esp, 0x18
mov dword [esp + 0x40], eax
test eax, eax
je 0x100421dc
push eax
mov eax, dword [esp + 0x14]
push eax
call sym.leptonlib.dll_sarrayConcatenate
lea ecx, [esp + 0x48]
push ecx
call sym.leptonlib.dll_sarrayDestroy
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call sym.leptonlib.dll_sarrayAppendRange
mov ebp, dword [esp + 0x4c]
add esp, 0x1c
inc ebp
cmp ebp, dword [esp + 0x34]
mov dword [esp + 0x30], ebp
jl 0x10042040
mov eax, dword [esp + 0x10]
push 1
push eax
call sym.leptonlib.dll_sarrayToString
mov esi, eax
add esp, 8
test esi, esi
jne 0x100421e6
mov eax, 1
jmp 0x1004228c
mov eax, esi
lea edx, [eax + 1]
jmp 0x100421f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100421f0
sub eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004221d
mov ecx, dword [esp + 0x28c]
push ecx
push eax
push str._slow._d.c
lea edx, [esp + 0x8c]
push edx
jmp 0x10042237
mov eax, dword [esp + 0x28c]
push eax
push str.fhmtgen
push str._slow._d.c
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esp + 0x48]
add esp, 0x10
push edx
push esi
lea eax, [esp + 0x88]
push 0x101432bc
push eax
call sym.leptonlib.dll_arrayWrite
lea ecx, [esp + 0x24]
push ecx
call sym.leptonlib.dll_sarrayDestroy
lea edx, [esp + 0x38]
push edx
call sym.leptonlib.dll_sarrayDestroy
lea eax, [esp + 0x40]
push eax
call sym.leptonlib.dll_sarrayDestroy
lea ecx, [esp + 0x2c]
push ecx
call sym.leptonlib.dll_sarrayDestroy
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x24
xor eax, eax
mov ecx, dword [esp + 0x280]
pop ebp
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.101407ce
add esp, 0x274
ret