Function at 0x10034f30
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 0x1003513e
mov edx, dword [ebx + 4]
mov ecx, edi
call fcn.1001f750
test eax, eax
je 0x1003513e
mov ecx, dword [eax + 0x64]
lea edx, [ebp - 4]
call fcn.1003be50
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x40]
mov eax, dword [0x1013cd38]
mov dword [ebp - 0x1c], esi
cmp edi, dword [eax]
je 0x10034fa8
mov ecx, dword [0x519d9c]
xor eax, eax
mov edx, dword [0x519da0]
test ecx, ecx
je 0x10034fc2
mov esi, dword [edi + 0x64]
cmp dword [edx + eax*4], esi
je 0x10034fa0
inc eax
cmp eax, ecx
jb 0x10034f94
jmp 0x10034fc2
inc eax
test eax, eax
jle 0x10034fc2
mov esi, dword [ebp - 0x1c]
mov ecx, edi
call fcn.10021440
mov eax, dword [eax + 0x1a8]
test eax, eax
je 0x10034fc2
sub esi, dword [0x10140f7c]
mov dword [ebp - 0x1c], esi
cmp byte [edi + 0x67], 1
je 0x10034fcf
xor eax, eax
jmp 0x100350fc
mov ecx, edi
call fcn.10088080
mov dword [ebp - 8], eax
test eax, eax
jne 0x10034feb
mov ecx, dword [edi + 0x64]
lea edx, [ebp - 8]
call fcn.1003be50
mov eax, dword [ebp - 8]
cmp dword [edi + 0x64], 0x1000000
mov esi, dword [eax + 0x24]
jne 0x1003504e
mov eax, dword [0x1013cd38]
cmp edi, dword [eax]
jne 0x1003504e
xor edx, edx
cmp dword [0x10176d18], edx
je 0x1003502c
mov eax, dword [0x66be40]
cmp eax, 0xffffffff
je 0x1003501b
mov edx, dword [eax*4 + 0x10176050]
mov eax, dword [0x66be44]
cmp eax, 0xffffffff
je 0x1003502c
add edx, dword [eax*4 + 0x10176050]
mov ecx, 0xf
call fcn.10024bd0
test eax, eax
je 0x1003503b
inc edx
mov ecx, 1
call fcn.10024bd0
test eax, eax
je 0x1003504c
add edx, 2
add esi, edx
xor eax, eax
cmp byte [edi + 0x67], 1
jne 0x10035078
mov ecx, edi
call fcn.10088080
mov dword [ebp - 8], eax
test eax, eax
jne 0x10035072
mov ecx, dword [edi + 0x64]
lea edx, [ebp - 8]
call fcn.1003be50
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xb0]
add esi, eax
cmp dword [0x1013d3d0], 0
mov dword [ebp - 8], esi
jne 0x100350ba
mov eax, dword [ebp - 0x20]
call dword [0x10121538]
test eax, eax
je 0x1003509e
mov eax, dword [eax + 0x64]
cmp eax, dword [0x1013d3cc]
je 0x100350b6
mov eax, dword [ebp - 0x20]
call dword [0x1012153c]
test eax, eax
je 0x100350ba
mov eax, dword [eax + 0x64]
cmp eax, dword [0x1013d3cc]
jne 0x100350ba
inc esi
mov dword [ebp - 8], esi
mov edx, 0x4f
mov ecx, edi
call fcn.10021af0
test eax, eax
je 0x100350f1
mov edx, 7
mov ecx, edi
call fcn.100247b0
cdq
mov ecx, edi
sub eax, edx
mov edx, 0x23
mov esi, eax
sar esi, 1
call fcn.100247b0
cmp eax, esi
mov esi, dword [ebp - 8]
jge 0x100350f1
inc esi
push 0
mov edx, esi
mov ecx, edi
call fcn.100c65f0
cmp dword [ebp - 0x1c], eax
jle 0x1003513e
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.1003d330
cmp eax, 1
jne 0x1003513e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call dword [0x1012171c]
test dword [ebx + 0x14], 0x100
je 0x1003514c
mov ecx, dword [ebx + 0x20]
jmp 0x1003514e
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 0x1003521f
mov ecx, esi
call fcn.10088080
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1003519d
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 0x20]
call fcn.1003be50
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0xac]
xor eax, eax
cmp byte [esi + 0x67], 1
jne 0x100351cd
mov ecx, esi
call fcn.10088080
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x100351c7
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 0x20]
call fcn.1003be50
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x138]
add edi, eax
cmp dword [0x1013d3d0], 0x22
jne 0x10035209
mov eax, dword [ebp - 8]
call dword [0x10121538]
test eax, eax
je 0x100351f0
mov eax, dword [eax + 0x64]
cmp eax, dword [0x1013d3cc]
je 0x10035208
mov eax, dword [ebp - 8]
call dword [0x1012153c]
test eax, eax
je 0x10035209
mov eax, dword [eax + 0x64]
cmp eax, dword [0x1013d3cc]
jne 0x10035209
inc edi
push 0x22
mov edx, edi
mov ecx, esi
call fcn.100c65f0
mov dword [ebp - 0x18], 0x22c
test eax, eax
jne 0x10035226
mov dword [ebp - 0x18], 0x1fa
lea edx, [ebp - 0x18]
mov ecx, 0x56d368
call fcn.1003d330
cmp eax, 1
jne 0x1003524d
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 0x10035240
mov eax, dword [0x1013cd38]
mov esi, dword [ebp - 0x1c]
cmp esi, dword [eax]
jne 0x1003527c
lea edi, [ebp - 0x40]
mov edx, 0x22
mov ecx, esi
mov dword [ebp - 8], edi
call fcn.100247b0
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x32
add esi, 0x1f4
jmp 0x100352b2
test esi, esi
je 0x100352a9
mov eax, dword [ebp - 4]
call dword [0x10121348]
mov edx, 0x22
mov dword [ebp - 8], eax
mov ecx, esi
call fcn.100247b0
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x64
add esi, 0x258
jmp 0x100352b2
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x10035421
mov edi, dword [ebx + 0x38]
test edi, edi
je 0x10035421
cmp ecx, edi
je 0x10035421
test dword [ebx + 0x14], 0x100
je 0x10035421
mov byte [ebp - 0x240], 0
test byte [edi + 0x24], 8
jne 0x10035377
mov al, byte [ecx + 0x23]
and al, 0xf
cmp al, 1
je 0x100352fd
cmp dword [ecx + 0x78], 0xffffffff
je 0x10035377
mov eax, dword [0x1013cd38]
lea edx, [ebp - 0x18]
mov ecx, 0x56d368
cmp edi, dword [eax]
jne 0x1003533c
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
call fcn.1003d330
cmp eax, 1
jne 0x1003540f
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0xc
jmp 0x1003540f
lea eax, [esi + 9]
mov dword [ebp - 0x18], eax
call fcn.1003d330
cmp eax, 1
jne 0x1003540f
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 0x1003540f
mov eax, dword [0x1013cd38]
mov edx, 0x22
mov ecx, dword [ebx]
cmp ecx, dword [eax]
jne 0x100353c5
call fcn.100247b0
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.1003d330
cmp eax, 1
jne 0x100353fb
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x240]
push eax
call fcn.1000d880
add esp, 0xc
jmp 0x100353fd
call fcn.100247b0
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.1003d330
cmp eax, 1
jne 0x100353fb
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call dword [0x10121348]
jmp 0x100353b0
xor eax, eax
lea ecx, [ebp - 0x240]
mov edx, 0x10122058
add ecx, eax
call fcn.10034a70
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 0x100356bf
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x100356bf
mov al, byte [ecx + 0x23]
and al, 0xf
cmp al, 1
jne 0x100356bf
mov byte [ebp - 0x240], 0
mov eax, dword [ecx + 0x44]
shr eax, 7
not al
test al, 1
je 0x100356bf
mov eax, dword [ebx + 0x28]
cmp eax, 8
jne 0x100354e0
test edx, 0x200
je 0x100354cb
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10035485
cmp eax, 1
jne 0x10035480
lea eax, [esi + 0x18]
jmp 0x10035488
lea eax, [esi + 0x14]
jmp 0x10035488
lea eax, [esi + 0x1c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, 0x56d368
xor edi, edi
call fcn.1003d330
cmp eax, 1
jne 0x1003558c
mov eax, dword [ebx + 0x2c]
cmp eax, 1
jle 0x100354b1
push eax
jmp 0x10035575
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0xc
jmp 0x1003558a
push dword [ebx + 0x2c]
mov edx, ecx
lea ecx, [ebp - 0x240]
call fcn.10034a90
jmp 0x1003558a
mov edx, eax
call fcn.10031280
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
je 0x1003558c
test dword [ebx + 0x14], 0x200
mov ecx, dword [ebx + 0x2c]
je 0x1003551d
test ecx, ecx
je 0x10035518
cmp ecx, 1
mov eax, 0xb
mov edx, 0x15
cmove eax, edx
add eax, esi
jmp 0x10035538
lea eax, [esi + 0x19]
jmp 0x10035538
test ecx, ecx
je 0x10035535
cmp ecx, 1
mov eax, 0xc
mov edx, 0x16
cmove eax, edx
add eax, esi
jmp 0x10035538
lea eax, [esi + 0x1a]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, 0x56d368
xor edi, edi
call fcn.1003d330
cmp eax, 1
jne 0x1003558c
mov eax, dword [ebx + 0x2c]
cmp eax, 1
jle 0x10035572
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 0x1003558a
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.10016ef0
cmp dword [ebp - 4], 1
jne 0x1003568f
test dword [ebx + 0x14], 0x200
je 0x1003568f
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x1003568f
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, 0x56d368
call fcn.1003d330
cmp eax, 1
jne 0x100355f1
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.10034a70
mov edi, eax
test byte [ebx + 0x30], 0x80
je 0x1003569e
mov edx, 0x10122058
mov ecx, edi
call fcn.10034a70
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 0x1003564d
mov ecx, dword [ebp - 0x1c]
call fcn.100247b0
neg eax
sbb eax, eax
and eax, 0x32
add eax, 0xcf
jmp 0x1003565e
call fcn.100247b0
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.1003d330
cmp eax, 1
jne 0x1003569e
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 0x100356a0
push dword [ebx + 0x20]
mov edx, dword [ebx + 0x30]
mov ecx, edi
call fcn.10034c40
mov edi, eax
xor eax, eax
lea ecx, [edi + eax]
mov edx, 0x10122058
call fcn.10034a70
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 0x100357c0
mov eax, dword [eax + 0x44]
shr eax, 7
not al
test al, 1
je 0x100357c0
mov eax, dword [ebx + 0x14]
test eax, 0x100
jne 0x10035799
test eax, 0x200
je 0x10035707
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x100356fa
lea eax, [ecx + 0xe]
jmp 0x1003570c
xor eax, eax
cmp ecx, 1
setne al
add eax, 0x21
jmp 0x1003570c
mov eax, 0xf
add eax, esi
lea edx, [ebp - 0x18]
mov ecx, 0x56d368
mov dword [ebp - 0x18], eax
xor edi, edi
call fcn.1003d330
cmp eax, 1
jne 0x1003575c
mov eax, dword [ebx + 0x10]
cmp eax, 1
jg 0x10035744
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push dword [ebp - 0xc]
push eax
call fcn.1000d880
add esp, 0xc
jmp 0x1003575a
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.10034c40
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 0x10035777
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 0x100357c0
mov eax, dword [ebx + 0x14]
test eax, 0x100
jne 0x100357b1
test eax, 0x200
jne 0x100357c0
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [ebx]
push eax
call fcn.10034ee0
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [ebx + 0x3c], edx
jbe 0x1003584d
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 0x1003583e
mov esi, dword [ecx]
mov edx, edi
push dword [ecx - 0x18]
lea ecx, [ebp - 0x240]
call fcn.10034a90
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x240]
mov edx, esi
add ecx, eax
mov edi, 0x10122058
call fcn.10034c40
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 0x10035816
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 0x100357d7
call fcn.100e4440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret