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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1013cd38]
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x20], edi
cmp edi, dword [eax]
jne 0x100350ce
mov edx, dword [ebx + 4]
mov ecx, edi
call fcn.1001f740
test eax, eax
je 0x100350ce
mov ecx, dword [eax + 0x64]
lea edx, [ebp - 4]
call fcn.1003bde0
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x40]
mov eax, dword [0x1013cd38]
mov dword [ebp - 0x1c], esi
cmp edi, dword [eax]
je 0x10034f38
mov ecx, dword [0x519d9c]
xor eax, eax
mov edx, dword [0x519da0]
test ecx, ecx
je 0x10034f52
mov esi, dword [edi + 0x64]
cmp dword [edx + eax*4], esi
je 0x10034f30
inc eax
cmp eax, ecx
jb 0x10034f24
jmp 0x10034f52
inc eax
test eax, eax
jle 0x10034f52
mov esi, dword [ebp - 0x1c]
mov ecx, edi
call fcn.10021430
mov eax, dword [eax + 0x1a8]
test eax, eax
je 0x10034f52
sub esi, dword [0x10140f7c]
mov dword [ebp - 0x1c], esi
cmp byte [edi + 0x67], 1
je 0x10034f5f
xor eax, eax
jmp 0x1003508c
mov ecx, edi
call fcn.10088050
mov dword [ebp - 8], eax
test eax, eax
jne 0x10034f7b
mov ecx, dword [edi + 0x64]
lea edx, [ebp - 8]
call fcn.1003bde0
mov eax, dword [ebp - 8]
cmp dword [edi + 0x64], 0x1000000
mov esi, dword [eax + 0x24]
jne 0x10034fde
mov eax, dword [0x1013cd38]
cmp edi, dword [eax]
jne 0x10034fde
xor edx, edx
cmp dword [0x10176d18], edx
je 0x10034fbc
mov eax, dword [0x66be40]
cmp eax, 0xffffffff
je 0x10034fab
mov edx, dword [eax*4 + 0x10176050]
mov eax, dword [0x66be44]
cmp eax, 0xffffffff
je 0x10034fbc
add edx, dword [eax*4 + 0x10176050]
mov ecx, 0xf
call fcn.10024b60
test eax, eax
je 0x10034fcb
inc edx
mov ecx, 1
call fcn.10024b60
test eax, eax
je 0x10034fdc
add edx, 2
add esi, edx
xor eax, eax
cmp byte [edi + 0x67], 1
jne 0x10035008
mov ecx, edi
call fcn.10088050
mov dword [ebp - 8], eax
test eax, eax
jne 0x10035002
mov ecx, dword [edi + 0x64]
lea edx, [ebp - 8]
call fcn.1003bde0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xb0]
add esi, eax
cmp dword [0x1013d3d0], 0
mov dword [ebp - 8], esi
jne 0x1003504a
mov eax, dword [ebp - 0x20]
call dword [0x10121538]
test eax, eax
je 0x1003502e
mov eax, dword [eax + 0x64]
cmp eax, dword [0x1013d3cc]
je 0x10035046
mov eax, dword [ebp - 0x20]
call dword [0x1012153c]
test eax, eax
je 0x1003504a
mov eax, dword [eax + 0x64]
cmp eax, dword [0x1013d3cc]
jne 0x1003504a
inc esi
mov dword [ebp - 8], esi
mov edx, 0x4f
mov ecx, edi
call fcn.10021ae0
test eax, eax
je 0x10035081
mov edx, 7
mov ecx, edi
call fcn.10024740
cdq
mov ecx, edi
sub eax, edx
mov edx, 0x23
mov esi, eax
sar esi, 1
call fcn.10024740
cmp eax, esi
mov esi, dword [ebp - 8]
jge 0x10035081
inc esi
push 0
mov edx, esi
mov ecx, edi
call fcn.100c65c0
cmp dword [ebp - 0x1c], eax
jle 0x100350ce
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov ecx, 0x56d368
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0x6b
call fcn.1003d2c0
cmp eax, 1
jne 0x100350ce
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call dword [0x1012171c]
test dword [ebx + 0x14], 0x100
je 0x100350dc
mov ecx, dword [ebx + 0x20]
jmp 0x100350de
mov ecx, dword [ebx]
mov eax, dword [0x1013cd38]
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], ecx
mov esi, dword [eax]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp byte [esi + 0x67], 1
mov dword [ebp - 8], esi
jne 0x100351af
mov ecx, esi
call fcn.10088050
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1003512d
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 0x20]
call fcn.1003bde0
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0xac]
xor eax, eax
cmp byte [esi + 0x67], 1
jne 0x1003515d
mov ecx, esi
call fcn.10088050
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10035157
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 0x20]
call fcn.1003bde0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x138]
add edi, eax
cmp dword [0x1013d3d0], 0x22
jne 0x10035199
mov eax, dword [ebp - 8]
call dword [0x10121538]
test eax, eax
je 0x10035180
mov eax, dword [eax + 0x64]
cmp eax, dword [0x1013d3cc]
je 0x10035198
mov eax, dword [ebp - 8]
call dword [0x1012153c]
test eax, eax
je 0x10035199
mov eax, dword [eax + 0x64]
cmp eax, dword [0x1013d3cc]
jne 0x10035199
inc edi
push 0x22
mov edx, edi
mov ecx, esi
call fcn.100c65c0
mov dword [ebp - 0x18], 0x22c
test eax, eax
jne 0x100351b6
mov dword [ebp - 0x18], 0x1fa
lea edx, [ebp - 0x18]
mov ecx, 0x56d368
call fcn.1003d2c0
cmp eax, 1
jne 0x100351dd
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x40]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100351d0
mov eax, dword [0x1013cd38]
mov esi, dword [ebp - 0x1c]
cmp esi, dword [eax]
jne 0x1003520c
lea edi, [ebp - 0x40]
mov edx, 0x22
mov ecx, esi
mov dword [ebp - 8], edi
call fcn.10024740
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x32
add esi, 0x1f4
jmp 0x10035242
test esi, esi
je 0x10035239
mov eax, dword [ebp - 4]
call dword [0x10121348]
mov edx, 0x22
mov dword [ebp - 8], eax
mov ecx, esi
call fcn.10024740
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x64
add esi, 0x258
jmp 0x10035242
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x100353b1
mov edi, dword [ebx + 0x38]
test edi, edi
je 0x100353b1
cmp ecx, edi
je 0x100353b1
test dword [ebx + 0x14], 0x100
je 0x100353b1
mov byte [ebp - 0x240], 0
test byte [edi + 0x24], 8
jne 0x10035307
mov al, byte [ecx + 0x23]
and al, 0xf
cmp al, 1
je 0x1003528d
cmp dword [ecx + 0x78], 0xffffffff
je 0x10035307
mov eax, dword [0x1013cd38]
lea edx, [ebp - 0x18]
mov ecx, 0x56d368
cmp edi, dword [eax]
jne 0x100352cc
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
call fcn.1003d2c0
cmp eax, 1
jne 0x1003539f
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0xc
jmp 0x1003539f
lea eax, [esi + 9]
mov dword [ebp - 0x18], eax
call fcn.1003d2c0
cmp eax, 1
jne 0x1003539f
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
call dword [0x10121348]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0x10
jmp 0x1003539f
mov eax, dword [0x1013cd38]
mov edx, 0x22
mov ecx, dword [ebx]
cmp ecx, dword [eax]
jne 0x10035355
call fcn.10024740
neg eax
lea edx, [ebp - 0x18]
mov ecx, 0x56d368
sbb eax, eax
and eax, 0x32
add eax, 0x203
mov dword [ebp - 0x18], eax
call fcn.1003d2c0
cmp eax, 1
jne 0x1003538b
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x240]
push eax
call fcn.1000d880
add esp, 0xc
jmp 0x1003538d
call fcn.10024740
neg eax
lea edx, [ebp - 0x18]
mov ecx, 0x56d368
sbb eax, eax
and eax, 0x64
add eax, 0x267
mov dword [ebp - 0x18], eax
call fcn.1003d2c0
cmp eax, 1
jne 0x1003538b
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call dword [0x10121348]
jmp 0x10035340
xor eax, eax
lea ecx, [ebp - 0x240]
mov edx, 0x10122058
add ecx, eax
call fcn.10034a00
lea eax, [ebp - 0x240]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call dword [0x1012171c]
mov edx, dword [ebx + 0x14]
test edx, 0x100
je 0x1003564f
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003564f
mov al, byte [ecx + 0x23]
and al, 0xf
cmp al, 1
jne 0x1003564f
mov byte [ebp - 0x240], 0
mov eax, dword [ecx + 0x44]
shr eax, 7
not al
test al, 1
je 0x1003564f
mov eax, dword [ebx + 0x28]
cmp eax, 8
jne 0x10035470
test edx, 0x200
je 0x1003545b
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10035415
cmp eax, 1
jne 0x10035410
lea eax, [esi + 0x18]
jmp 0x10035418
lea eax, [esi + 0x14]
jmp 0x10035418
lea eax, [esi + 0x1c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, 0x56d368
xor edi, edi
call fcn.1003d2c0
cmp eax, 1
jne 0x1003551c
mov eax, dword [ebx + 0x2c]
cmp eax, 1
jle 0x10035441
push eax
jmp 0x10035505
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0xc
jmp 0x1003551a
push dword [ebx + 0x2c]
mov edx, ecx
lea ecx, [ebp - 0x240]
call fcn.10034a20
jmp 0x1003551a
mov edx, eax
call fcn.10031210
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
je 0x1003551c
test dword [ebx + 0x14], 0x200
mov ecx, dword [ebx + 0x2c]
je 0x100354ad
test ecx, ecx
je 0x100354a8
cmp ecx, 1
mov eax, 0xb
mov edx, 0x15
cmove eax, edx
add eax, esi
jmp 0x100354c8
lea eax, [esi + 0x19]
jmp 0x100354c8
test ecx, ecx
je 0x100354c5
cmp ecx, 1
mov eax, 0xc
mov edx, 0x16
cmove eax, edx
add eax, esi
jmp 0x100354c8
lea eax, [esi + 0x1a]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, 0x56d368
xor edi, edi
call fcn.1003d2c0
cmp eax, 1
jne 0x1003551c
mov eax, dword [ebx + 0x2c]
cmp eax, 1
jle 0x10035502
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x240]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0x14
jmp 0x1003551a
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0x10
mov edi, eax
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 1
push str.combat_messages
mov edx, str.preferences
lea ecx, [ebp - 4]
add edi, eax
call fcn.10016ee0
cmp dword [ebp - 4], 1
jne 0x1003561f
test dword [ebx + 0x14], 0x200
je 0x1003561f
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x1003561f
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, 0x56d368
call fcn.1003d2c0
cmp eax, 1
jne 0x10035581
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.10034a00
mov edi, eax
test byte [ebx + 0x30], 0x80
je 0x1003562e
mov edx, 0x10122058
mov ecx, edi
call fcn.10034a00
lea eax, [ebp - 0x240]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call dword [0x1012171c]
mov eax, dword [0x1013cd38]
lea edi, [ebp - 0x240]
mov ecx, dword [ebx + 0x20]
mov edx, 0x22
mov byte [ebp - 0x240], 0
cmp ecx, dword [eax]
jne 0x100355dd
mov ecx, dword [ebp - 0x1c]
call fcn.10024740
neg eax
sbb eax, eax
and eax, 0x32
add eax, 0xcf
jmp 0x100355ee
call fcn.10024740
neg eax
sbb eax, eax
and eax, 0x64
add eax, 0x133
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, 0x56d368
call fcn.1003d2c0
cmp eax, 1
jne 0x1003562e
push dword [ebp - 0xc]
lea eax, [ebp - 0x240]
push dword [ebp - 8]
push str._s__s
push eax
call fcn.1000d880
add esp, 0x10
jmp 0x10035630
push dword [ebx + 0x20]
mov edx, dword [ebx + 0x30]
mov ecx, edi
call fcn.10034bd0
mov edi, eax
xor eax, eax
lea ecx, [edi + eax]
mov edx, 0x10122058
call fcn.10034a00
lea eax, [ebp - 0x240]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call dword [0x1012171c]
mov eax, dword [ebx]
test eax, eax
je 0x10035750
mov eax, dword [eax + 0x44]
shr eax, 7
not al
test al, 1
je 0x10035750
mov eax, dword [ebx + 0x14]
test eax, 0x100
jne 0x10035729
test eax, 0x200
je 0x10035697
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x1003568a
lea eax, [ecx + 0xe]
jmp 0x1003569c
xor eax, eax
cmp ecx, 1
setne al
add eax, 0x21
jmp 0x1003569c
mov eax, 0xf
add eax, esi
lea edx, [ebp - 0x18]
mov ecx, 0x56d368
mov dword [ebp - 0x18], eax
xor edi, edi
call fcn.1003d2c0
cmp eax, 1
jne 0x100356ec
mov eax, dword [ebx + 0x10]
cmp eax, 1
jg 0x100356d4
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0xc
jmp 0x100356ea
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0x10
mov edi, eax
push dword [ebx]
mov edx, dword [ebx + 0x14]
lea ecx, [ebp - 0x240]
add ecx, edi
mov esi, 0x10122058
call fcn.10034bd0
mov ecx, eax
mov al, 0x2e
mov byte [ecx], al
lea esi, [esi + 1]
mov al, byte [esi]
lea ecx, [ecx + 1]
test al, al
jne 0x10035707
mov byte [ecx], al
lea eax, [ebp - 0x240]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call dword [0x1012171c]
mov edx, dword [ebx + 0x10]
test edx, edx
jle 0x10035750
mov eax, dword [ebx + 0x14]
test eax, 0x100
jne 0x10035741
test eax, 0x200
jne 0x10035750
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [ebx]
push eax
call fcn.10034e70
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [ebx + 0x3c], edx
jbe 0x100357dd
lea ecx, [ebx + 0x88]
mov dword [ebp - 0x20], ecx
mov edi, dword [ecx - 0x48]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi + 0x44]
shr eax, 7
not al
test al, 1
je 0x100357ce
mov esi, dword [ecx]
mov edx, edi
push dword [ecx - 0x18]
lea ecx, [ebp - 0x240]
call fcn.10034a20
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x240]
mov edx, esi
add ecx, eax
mov edi, 0x10122058
call fcn.10034bd0
mov ecx, eax
mov al, 0x2e
mov byte [ecx], al
lea edi, [edi + 1]
mov al, byte [edi]
lea ecx, [ecx + 1]
test al, al
jne 0x100357a6
mov byte [ecx], al
lea eax, [ebp - 0x240]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call dword [0x1012171c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
inc edx
add ecx, 4
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], ecx
cmp edx, dword [ebx + 0x3c]
jb 0x10035767
call fcn.100e4440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret